Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

SystemC code generation system based on model

A code generation and model technology, applied in general control systems, control/adjustment systems, creation/generation of source codes, etc., can solve problems such as heavy workload and unsatisfactory simulation, save time, reduce economic costs, and realize integration The effect of simulation verification

Active Publication Date: 2017-01-25
杭州杉石科技有限公司
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in industrial simulation, the compatibility and coordination of software and hardware are involved, and ordinary Java or C language codes cannot meet the requirements of simulation; SystemC is a software-hardware collaborative design language, which includes a series of C++ classes and macros. And it provides an event-driven simulation core, so that the system designer can use C++ lexical simulation to simulate parallel processes, and the simulation can be compiled and simulated in the VC6.0 environment
However, the workload of using SystemC to write code is very large, and the hardware description code is mostly repetitive code, so there is an urgent need for a system that can automatically generate SystemC code, undertake upstream design data, and compile in the VC6.0 environment after generating code Simulate, reduce effort, and improve code quality

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • SystemC code generation system based on model

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach

[0061] Specific implementation methods include:

[0062] 1. The system reads the scene, equipment, signal, logic, monitoring and incentive information in the model;

[0063] 2. The system reads the simulation scene model to generate the main function header file of the SystemC code

[0064] 3. The system reads the simulation scene and generates the SystemC code main function execution file

[0065] 4. The system reads the device model in the simulation scene to generate the SystemC code frame header file

[0066] 5. The system reads the device model in the simulation scene and generates the SystemC code framework execution file

[0067] 6. The system reads the monitoring model in the simulation scene to generate the SystemC code function header file

[0068] 7. The system reads the monitoring model in the simulation scene and generates the SystemC code function execution file

[0069] 8. The system reads the logic model in the simulation scene to generate SystemC code, and...

specific Embodiment

[0084] The model-based SystemC code generation system provided by the embodiment of the present invention includes 4 modules, which are respectively "frame code generation module", "communication level code generation module", "logic behavior code generation module", "execution code generation module" and "execution code generation module". Module", used to generate code and code files, the SystemC simulation kernel is the mature VC6.0 compilation environment, used to generate code compilation simulation, such as figure 1 shown.

[0085] In the actual generation process of SystemC code, the functions of each module are as follows:

[0086] a) Framework code generation module, obtain incentive model, equipment model, monitoring model, logic model, signal model description information, generate incentive function code framework, equipment function code framework, monitoring model framework, logic model framework and incentive, equipment monitoring, main SystemC .h and .c code f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a SystemC code generation system based on a model and relates to the technical field of industrial electronic tools. With the adoption of the SystemC code generation system based on the model in the embodiment, automatic generation of model data SystemC codes can be realized through inheriting of behavior logic model data in Modelook, the logic model data is subjected to digital simulation verification directly, so that the economic cost is greatly reduced, and time is saved; besides, the logic model data is verified through hardware / software co-design language, and integrated simulation verification of hardware functions and software functions of an industrial electronic system is realized.

Description

technical field [0001] The invention relates to the technical field of industrial electronic tools, relates to an automatic generation system of codes from modeling to simulation of an industrial electronic embedded system, and in particular to a model-based SystemC code generation system. Background technique [0002] Now, most software developers still use the traditional method of writing codes by hand. This traditional development method is usually inefficient, has a long cycle, and there is a lot of repetitive work, which leads to project delays and costs beyond plan. [0003] In the process of simulation, developers and designers need to first build a model, and then verify the built simulation model. In the software environment, they need to write or generate source code that can be recognized and run by a computer. However, in industrial simulation, the compatibility and coordination of software and hardware are involved, and ordinary Java or C language codes cannot ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G05B17/02
CPCG05B17/02G06F8/31
Inventor 杨栋刘阳李昊泽吴伟李晋章磊曹勇
Owner 杭州杉石科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products