working with giano
DESCRIPTION
Working with Giano. Richard Neil Pittman Microsoft Research. Procedures. Installing Giano Running Simulations in Giano from Visio Running Simulations from the Command Line Connecting to Simulations using Serplexd Simulating EB63 with HostFS Creating/modifying a configuration - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/1.jpg)
Working with Giano
Richard Neil PittmanMicrosoft Research
![Page 2: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/2.jpg)
Procedures
• Installing Giano• Running Simulations in Giano from Visio• Running Simulations from the Command
Line• Connecting to Simulations using Serplexd• Simulating EB63 with HostFS• Creating/modifying a configuration• Creating a new Giano module
![Page 3: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/3.jpg)
Procedure #1
• Installing Giano• Running Simulations in Giano from Visio• Running Simulations from the Command
Line• Connecting to Simulations using Serplexd• Simulating EB63 with HostFS• Creating/modifying a configuration• Creating a new Giano module
![Page 4: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/4.jpg)
Installing Giano
1. Extract Giano Files from archive, or copy from CD, or just run the MSI file (V2)
2. Rebuild Giano (if necessary)3. Install Microsoft Visio Scripts (if Microsoft
Visio 2003 installed, strongly recommended)
![Page 5: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/5.jpg)
Rebuilding Giano1. Have Microsoft Visual Studio installed on the
Computer (VC6,7 and 8 are all ok)2. Delete all *.manifest files from the subtree3. Do not delete the following files from the ‘bin’
folder:
4. Open a MVS Command Prompt and call ‘nmake clean all’
5. For Win64 do a “set AMD64=1” first.
• bbuniq.exe• bbw.dll• cbw32.dll• mcc.dll• msvcr71.dll• np.dll• vpi2g.dll• vssver.scc• vvp.dll
• bbcat.exe• bbdump.exe• bbfind.exe• bbmatch.exe• bbmerge.exe• bbrewrite.exe• bbs.dll• bbselect.exe• bbsort.exe
![Page 6: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/6.jpg)
Install Microsoft Visio Templates
• Double click the ‘giano.msi’ file in the Visio\v2\ directory
• Follow the installation wizard and select the ‘Typical Install’
• Copy the Giano binaries from the ‘bin’ directory to ‘C:\Program Files\Microsoft Giano\bin\’
• Add the installation directory to your path:– set path=%path%;” C:\Program Files\
Microsoft Giano\bin”
![Page 7: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/7.jpg)
Visio and Macros
• You must enable Visio macros, set Tools::Macros::Security to Medium or Low
![Page 8: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/8.jpg)
Procedure #2
• Installing Giano• Running Simulations in Giano from Visio• Running Simulations from the Command Line• Connecting to Simulations using Serplexd• Simulating EB63 with HostFS• Creating/modifying a configuration• Creating a new Giano module
![Page 9: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/9.jpg)
Running Simulations in Giano from Microsoft Visio
1. Open the *.vsd of the configuration you wish to run.
![Page 10: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/10.jpg)
Running Simulations in Giano from Microsoft Visio
2. Right Click on CPU model and select ‘Create the Simulation Configuration File’. This creates the *.plx configuration file based on the model drawn in Microsoft Visio
3. Right Click on the CPU model and select ‘Start Simulation’. The simulation will start in a command window.
![Page 11: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/11.jpg)
Running Simulations in Giano from Microsoft Visio
![Page 12: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/12.jpg)
Running Simulations in Giano from Microsoft Visio
![Page 13: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/13.jpg)
Procedure #3
• Installing Giano• Running Simulations in Giano from Visio• Running Simulations from the
Command Line• Connecting to Simulations using Serplexd• Simulating EB63 with HostFS• Creating/modifying a configuration• Creating a new Giano module
![Page 14: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/14.jpg)
Running Simulations from the Command Line
1. Open a Command Prompt to the directory where your *.plx configuration file is located.
![Page 15: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/15.jpg)
Running Simulations from the Command Line
2. Type “giano.exe –Platform <name of *.plx file>” and press ‘Enter’. The simulation will begin running in this Command Window.
![Page 16: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/16.jpg)
Running Simulations from the Command Line
![Page 17: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/17.jpg)
Procedure #4
• Installing Giano• Running Simulations in Giano from Visio• Running Simulations from the Command Line• Connecting to Simulations using Serplexd• Simulating EB63 with HostFS• Creating/modifying a configuration• Creating a new Giano module
![Page 18: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/18.jpg)
Connecting to Simulation using Serplexd
1. Open a Command Prompt to the directory where serplexd.exe is located.
![Page 19: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/19.jpg)
Connecting to Simulation using Serplexd
2. Type ‘serplexd -n \\.\pipe\usart0’ and press ‘Enter’. Serplexd will begin running in this Command Window.
![Page 20: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/20.jpg)
Connecting to Simulation using Serplexd
![Page 21: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/21.jpg)
Connecting to Simulation using Serplexd
3. Type something, like “dir”
![Page 22: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/22.jpg)
Procedure #5
• Installing Giano• Running Simulations in Giano from Visio• Running Simulations from the Command
Line• Connecting to Simulations using Serplexd• Simulating EB63 with HostFS• Creating/modifying a configuration• Creating a new Giano module
![Page 23: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/23.jpg)
Simulating EB63 with HostFS
1. Build MMlite (compile source code)2. Copy serplexd to MMlite build directory
bin of the desired compiler (EX. C:\inv\build\arm_gnu\release\bin)
3. Copy the *.plx configuration file to the MMlite build directory
![Page 24: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/24.jpg)
Simulating EB63 with HostFS
4. Run Microsoft Giano in the Command Line with the following in the location of the Eb63.plx file: giano.exe –Platform Eb63.plx FLASH::PermanentStorage eb63.bin
![Page 25: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/25.jpg)
Simulating EB63 with HostFS
![Page 26: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/26.jpg)
Simulating EB63 with HostFS
5. Run serplexd.exe from the MMlite build directory bin.
![Page 27: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/27.jpg)
Simulating EB63 with HostFS
6. After a short time you should see the ‘Done Prompt’ to inform you that it has completed loading the first program from HostFS
![Page 28: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/28.jpg)
Procedure #6
• Installing Giano• Running Simulations in Giano from Visio• Running Simulations from the Command
Line• Connecting to Simulations using Serplexd• Simulating EB63 with HostFS• Creating/modifying a configuration• Creating a new Giano module
![Page 29: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/29.jpg)
Creating/modifying a Configuration
1- Start Visio and select File::New::Electrical Engineering::Giano Configurations or..
1a- Open an existing .VSD configuration
Note: the .plx file is just XML, you can edit it directly but Visio is much easier
![Page 30: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/30.jpg)
Creating/modifying a Configuration
![Page 31: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/31.jpg)
Creating/modifying a Configuration
2- Drag&drop new objects from “Giano Shapes” to your configuration
![Page 32: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/32.jpg)
Creating/modifying a Configuration
![Page 33: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/33.jpg)
Creating/modifying a Configuration
3- Connect objects with the “Connector Tool”:
![Page 34: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/34.jpg)
Creating/modifying a Configuration
![Page 35: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/35.jpg)
Creating/modifying a Configuration
![Page 36: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/36.jpg)
Creating/modifying a Configuration
4- Edit an object properties by selecting it and working on the “Custom Properties”
5- Add/Remove properties by right-clicking on the Custom Properties and selecting “Define Properties”
![Page 37: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/37.jpg)
Creating/modifying a Configuration
![Page 38: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/38.jpg)
Creating/modifying a Configuration
![Page 39: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/39.jpg)
Creating/modifying a Configuration
6- Save your new configuration with File::SaveAs
7- Create your .PLX file by right-clicking on a CPU module and selecting “Create the Simulation Configuration File”
8- Run your new configuration
![Page 40: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/40.jpg)
Creating/modifying a Configuration
![Page 41: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/41.jpg)
Procedure #7
• Installing Giano• Running Simulations in Giano from Visio• Running Simulations from the Command
Line• Connecting to Simulations using Serplexd• Simulating EB63 with HostFS• Creating/modifying a configuration• Creating a new Giano module
![Page 42: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/42.jpg)
Creating a new Giano module
1- Create a suitable new object in your configuration and change the “Implementation” property to the name of your new device, such as “MyDevice”
Note: We will create a new Device object. Busses, CPUs and memories are similar
![Page 43: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/43.jpg)
Creating a new Giano module
![Page 44: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/44.jpg)
Creating a new Giano module
2- Go to the Peripherals folder and copy the template file Unknown.cpp to MyDevice.cpp
3- Edit the file as needed to implement your functionality
Note: To debug you should build Giano for debugging with “nmake clean debug”
![Page 45: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/45.jpg)
Creating a new Giano module
![Page 46: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/46.jpg)
Creating a new Giano module
4- Edit the Peripherals\makefile to build your module along with the others
![Page 47: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/47.jpg)
Creating a new Giano module
![Page 48: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/48.jpg)
Creating a new Giano module
5- Rebuild from the top with “nmake debug”
![Page 49: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/49.jpg)
Creating a new Giano module
![Page 50: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/50.jpg)
Creating a new Giano module
6- Copy your module in the installation directory
7- Add the “DebugFlags” property to your device and try out your configuration
![Page 51: Working with Giano](https://reader036.vdocuments.mx/reader036/viewer/2022062501/56815c31550346895dca14ce/html5/thumbnails/51.jpg)
Creating a new Giano module