Font Size: a A A

Design And Implementation Of A Visual Configuration System For Chips Based On MVC

Posted on:2022-07-23Degree:MasterType:Thesis
Country:ChinaCandidate:Y R LouFull Text:PDF
GTID:2518306605968579Subject:Master of Engineering
Abstract/Summary:
In the process of embedded development,developers need to be familiar with the operation mechanism of MCU hardware in order to develop embedded projects efficiently.With the continuous improvement of chip integration,the register parameters in MCU are becoming more and more complex,so the difficulty of driver development is also increasing.Therefore,using software tools to assist embedded developers in configuring MCU chip parameters is of great significance to reduce the difficulty of driving development and improve the efficiency of project development.There are many research results on embedded development tools at home and abroad,but most of them are integrated in IDEs,and can’t provide complete chip configuration capabilities.And a few separate chip configuration tools can only be used on specific hardware platforms.For the above problems,this thesis establishes an abstract model of the actual MCU by formal methods such as Petri net,and designs a visual configuration system for the chip based on MVC architecture.The system realizes the functions of chip parameter configuration,power consumption estimation,configuration code generation,etc.It can well meet the actual requirements of the chip configuration.It is simple to use and extensible.The main work of this thesis is as follows:First,this thesis presents an abstract model for characterizing the dependencies among configurable parameters of MCU chips.To ensure the universality of the model on various MCU chips,the hardware functions on the chips are mapped to hardware abstraction layer interfaces.By using Petri net to simulate the port assignment logic of the chip peripheral,the model’s peripheral port assignment algorithm is obtained.By using state machine to analyze the mode switching process of the chip pins,the state transition logic of pins in the model is simplified.Secondly,this thesis discusses the overall design of the system.By analyzing the actual factors that affect the difficulty of embedded development,the system’s functional requirements are clarified.The overall framework of the system is built based on the chip’s abstract model of the chip and MVC architecture.It separates the system business logic from the interface drawing,and ensures the scalability of the system.Subsequently,this thesis introduces in detail the design and implementation of the key modules of the system.Based on the chip model,the configuration functions of the pins,peripherals,clocks and other sub-modules in the chip are completed.By establishing related XML data structure,the system can dynamically import chip parameters and create user interfaces,thus ensuring the module’s reusability.By introducing event monitoring and dispatching mechanism,the system can handle complex events.By using code engine and templates,the system can customize output text.Finally,this thesis tests the chip’s visual configuration system.The tests include the integrity of the chip configuration function and the correctness of the code generation results in the system.The results show that the chip model presented in this thesis represents the configurable content of the actual chip very well,and the system design scheme has good feasibility.
Keywords/Search Tags:Embedded Development, Configuration Tool, MVC, Visualization, Code Generation
Related items