A graphical method for automatic code generation from extended s-system petri net models

This work has introduced a fast and reliable method for graphical modeling of discrete systems control problems using extended S-system Petri Net. By adding new functionalities to the extended S-System Petri Net, dynamic quantities such as microcontroller signals transitions, system timing, interrup...

Full description

Saved in:
Bibliographic Details
Main Author: Ng, Kok Mun
Format: Thesis
Language:English
English
English
Published: 2006
Subjects:
Online Access:http://eprints.uthm.edu.my/2224/1/NG%20KOK%20MUN%20-%20declaration.pdf
http://eprints.uthm.edu.my/2224/2/NG%20KOK%20MUN%20-%2024p.pdf
http://eprints.uthm.edu.my/2224/3/NG%20KOK%20MUN%20-%20fulltext.pdf
http://eprints.uthm.edu.my/2224/
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Universiti Tun Hussein Onn Malaysia
Language: English
English
English
id my.uthm.eprints.2224
record_format eprints
spelling my.uthm.eprints.22242021-10-31T04:35:24Z http://eprints.uthm.edu.my/2224/ A graphical method for automatic code generation from extended s-system petri net models Ng, Kok Mun TJ212-225 Control engineering systems. Automatic machinery (General) This work has introduced a fast and reliable method for graphical modeling of discrete systems control problems using extended S-system Petri Net. By adding new functionalities to the extended S-System Petri Net, dynamic quantities such as microcontroller signals transitions, system timing, interrupts, subroutines and arithmetic operations could now be modeled by software. A graphical-based diagram editor has been developed in this work to handle the model entry, editing and visualization. The diagram editor contains all the basic facilities required for entering, editing, visualization and syntax analysis of the S-System Petri Net model. A compiler has also been built to compile the graphical model and generate the assembly code automatically. Together, the diagram editor and model compiler forms an integrated design and development tool called S-PNGEN. Seamless data binding between the diagram editor and the model compiler is achieved by using a common directed-graph framework to internally represent the model diagrams. Diagram syntax checking was implemented using attributed graph grammar. Also introduced in this work is an efficient method for implementing the control solutions on a microcontroller. This involves the development of a procedure for automatically mapping S-System Petri Net models constructed in the diagram editor to control flow graphs. The procedure uses a notion called graph nesting to help the design tool read and understand S-System model diagrams and transform them into control flow graphs. Conversion of an S-System Petri Net model into a control flow graph is an innovative approach introduced in this work for automatic code generation as it guarantees the production of the correct code layout and information for use by the compiler. By applying a syntax-directed translation on the control flow graph constructed, the built-in compiler then automatically generates the assembly code for the target microcontroller. 2006-07 Thesis NonPeerReviewed text en http://eprints.uthm.edu.my/2224/1/NG%20KOK%20MUN%20-%20declaration.pdf text en http://eprints.uthm.edu.my/2224/2/NG%20KOK%20MUN%20-%2024p.pdf text en http://eprints.uthm.edu.my/2224/3/NG%20KOK%20MUN%20-%20fulltext.pdf Ng, Kok Mun (2006) A graphical method for automatic code generation from extended s-system petri net models. Masters thesis, Universiti Tun Hussein Onn Malaysia.
institution Universiti Tun Hussein Onn Malaysia
building UTHM Library
collection Institutional Repository
continent Asia
country Malaysia
content_provider Universiti Tun Hussein Onn Malaysia
content_source UTHM Institutional Repository
url_provider http://eprints.uthm.edu.my/
language English
English
English
topic TJ212-225 Control engineering systems. Automatic machinery (General)
spellingShingle TJ212-225 Control engineering systems. Automatic machinery (General)
Ng, Kok Mun
A graphical method for automatic code generation from extended s-system petri net models
description This work has introduced a fast and reliable method for graphical modeling of discrete systems control problems using extended S-system Petri Net. By adding new functionalities to the extended S-System Petri Net, dynamic quantities such as microcontroller signals transitions, system timing, interrupts, subroutines and arithmetic operations could now be modeled by software. A graphical-based diagram editor has been developed in this work to handle the model entry, editing and visualization. The diagram editor contains all the basic facilities required for entering, editing, visualization and syntax analysis of the S-System Petri Net model. A compiler has also been built to compile the graphical model and generate the assembly code automatically. Together, the diagram editor and model compiler forms an integrated design and development tool called S-PNGEN. Seamless data binding between the diagram editor and the model compiler is achieved by using a common directed-graph framework to internally represent the model diagrams. Diagram syntax checking was implemented using attributed graph grammar. Also introduced in this work is an efficient method for implementing the control solutions on a microcontroller. This involves the development of a procedure for automatically mapping S-System Petri Net models constructed in the diagram editor to control flow graphs. The procedure uses a notion called graph nesting to help the design tool read and understand S-System model diagrams and transform them into control flow graphs. Conversion of an S-System Petri Net model into a control flow graph is an innovative approach introduced in this work for automatic code generation as it guarantees the production of the correct code layout and information for use by the compiler. By applying a syntax-directed translation on the control flow graph constructed, the built-in compiler then automatically generates the assembly code for the target microcontroller.
format Thesis
author Ng, Kok Mun
author_facet Ng, Kok Mun
author_sort Ng, Kok Mun
title A graphical method for automatic code generation from extended s-system petri net models
title_short A graphical method for automatic code generation from extended s-system petri net models
title_full A graphical method for automatic code generation from extended s-system petri net models
title_fullStr A graphical method for automatic code generation from extended s-system petri net models
title_full_unstemmed A graphical method for automatic code generation from extended s-system petri net models
title_sort graphical method for automatic code generation from extended s-system petri net models
publishDate 2006
url http://eprints.uthm.edu.my/2224/1/NG%20KOK%20MUN%20-%20declaration.pdf
http://eprints.uthm.edu.my/2224/2/NG%20KOK%20MUN%20-%2024p.pdf
http://eprints.uthm.edu.my/2224/3/NG%20KOK%20MUN%20-%20fulltext.pdf
http://eprints.uthm.edu.my/2224/
_version_ 1738580962395029504