Changes between Version 5 and Version 6 of VMdocumentation
- Timestamp:
- Apr 5, 2020, 10:14:18 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VMdocumentation
v5 v6 75 75 2.1) proceed as in 1.1 76 76 77 2.2) G eneration of software application code (from AVATAR model)77 2.2) Go to the Avatar Deployment Panel. Click on the Syntax Analysis icon in the main toolbar (19th from the left). The application diagram is read in and syntax-checked, the deployment diagram is read in. 78 78 79 Go to the Avatar Deployment Panel. 80 Click on the Syntax Analysis icon in the main toolbar. The Avatar model is read in and syntax analysis of the block and state machine diagrams is performed. 79 2.3) Click on the Syntax Analysis icon in the main toolbar (19th from the left). The Avatar model is read in and syntax analysis of the block and state machine diagrams is performed. 81 80 82 Then, click on the gear rightmost in the Avatar Deployment panel's toolbar . (You might have to enlarge the TTool window in the Virtual Machine). The leftmost tab83 allows code generation. Press start button. 81 Then, click on the gear rightmost in the Avatar Deployment panel's toolbar (lower toolbar). You might have to enlarge the TTool window in the Virtual Machine. 82 A window opens. In the order of the tabs, perform the following in the left-to-right order of the tabs: 84 83 85 2.3) Co-simulation in the virtual machine: 84 generate code: generates the application code, topcell and some auxiliary files 86 85 87 In the TTool/MPSoC directory, a specific Makefile (Makefile.forsoclib) can be configured for MIPS32 or PowerPC cross-compilation. 88 You first have to cross-compile the application code (Posix tasks) using "make compilesoclib", then the SoCLib platform using "make runsoclib". 89 The cross-compiled application is loaded into the memory of the SoCLib RAM, and the SoCLib topcell instantiates the GPIO interface and 90 starts the simulation. 86 compile: cross-compiles the application code and links with the micro-kernel 91 87 92 summary of make options : 93 94 make updateruntime (normally not needed - only for changes to the runtime) 95 make compilesoclib (cross-compilation for target machine) 96 make runsoclib (compiles the SoCLib platform and the SystemC AMS clusters) 97 make allsoclib: updates runtime, compiles, and runs, virtual prototype 98 88 execute: compiles the SoCLib platform and starts simulation 99 89 100 90 3) Most examples use the TDF and DE MoC.