VHDL simulation on MacOS X
You are viewing an old revision of this post, from October 25, 2013 @ 18:19:41. See below for differences between this version and the current revision.
While actually programming a CPLD is not possible on Mac, you’re able to compile and simulate: I installed GHDL from here:
http://ghdl.free.fr/site/pmwiki.php?n=Main.Download
ghdl lets you analyze and elaborate a VHDL design + test bench from the command line. Then you can view the simulation as waveforms with gtkwave:
http://gtkwave.sourceforge.net/gtkwave.zip
Documentation for ghdl (once installed) is in file:///usr/local/ghdl/doc/ghdl.html
this guide was also useful for me to set things up: http://dcse.die.upm.es/Grupo42/ManualGHDL_v1.1.pdf
see the script ./simulate_Ram_control.sh in the synkie svn repository for how to invoke the simulation from the command line.
I commented out the line that launches gtkwave because you have to launch gtkwave only once, then when you recompile a corrected version you’ll only have to select “Reload Waveform” from the Edit menu. I’m pretty sure this same thing should be possible to do in ModelSim but I just couldn’t figure this shit out.
Module Info
Inputs: | |
---|---|
Outputs: | |
Power Draw on +5V: | N/A |
Power Draw on -5V: | N/A |
Frequency Response: |
Schematic & PCB
Observations
No observations yet
Revisions:
- October 26, 2013 @ 09:41:23 [Current Revision] by Michael
- October 26, 2013 @ 09:41:23 by Michael
- October 25, 2013 @ 18:19:41 by Michael
Changes:
October 25, 2013 @ 18:19:41 | Current Revision | ||
---|---|---|---|
Content | |||
While actually programming a CPLD is not possible on Mac, you're able to compile and simulate: I installed <a href="http:// eng-osx.sourceforge.net/ GHDL.html">GHDL</a> from here: | While actually programming a CPLD is not possible on Mac, you're able to compile and simulate: I installed <a href="http:// eng-osx.sourceforge.net/ GHDL.html">GHDL</a> from here: | ||
<a href="http:// ghdl.free.fr/ site/pmwiki.php?n= Main.Download" >http://ghdl.free.fr/ site/pmwiki.php?n= Main.Download</a> | <a href="http:// ghdl.free.fr/ site/pmwiki.php?n= Main.Download" >http://ghdl.free.fr/ site/pmwiki.php?n= Main.Download</a> | ||
ghdl lets you analyze and elaborate a VHDL design + test bench from the command line. Then you can view the simulation as waveforms with gtkwave: | ghdl lets you analyze and elaborate a VHDL design + test bench from the command line. Then you can view the simulation as waveforms with gtkwave: | ||
<a href="http:// gtkwave.sourceforge.net/ gtkwave.zip" >http://gtkwave.sourceforge.net/ gtkwave.zip</a> | <a href="http:// gtkwave.sourceforge.net/ gtkwave.zip" >http://gtkwave.sourceforge.net/ gtkwave.zip</a> | ||
Documentation for ghdl (once installed) is in file:///usr/local/ ghdl/doc/ghdl.html | Documentation for ghdl (once installed) is in file:///usr/local/ ghdl/doc/ghdl.html | ||
this guide was also useful for me to set things up: http://dcse.die.upm.es/ Grupo42/ManualGHDL_v1.1.pdf | this guide was also useful for me to set things up: http://dcse.die.upm.es/ Grupo42/ManualGHDL_v1.1.pdf | ||
see the script ./simulate_Ram_control.sh in the synkie svn repository for how to invoke the simulation from the command line. | see the script ./simulate_Ram_control.sh in the synkie svn repository for how to invoke the simulation from the command line. | ||
I commented out the line that launches gtkwave because you have to launch gtkwave only once, then when you recompile a corrected version you'll only have to select "Reload Waveform" from the Edit menu. I'm pretty sure this same thing should be possible to do in ModelSim but I just couldn't figure this shit out. | I commented out the line that launches gtkwave because you have to launch gtkwave only once, then when you recompile a corrected version you'll only have to select "Reload Waveform" from the Edit menu. I'm pretty sure this same thing should be possible to do in ModelSim but I just couldn't figure this shit out. | ||
But cow can actually just double click on the generated .ghw file to see the waveforms. | |||
<a href="http:// synkie.net/wordpress/wp-content/ uploads/2013/ 10/Screen-Shot- 2013-10-26-at- 11.39.46.png"><img class=" wp-image-278 " alt="Screen Shot 2013-10-26 at 11.39.46" src="http://synkie.net/ wordpress/wp- content/uploads/ 2013/10/Screen-Shot-2013- 10-26-at-11.39.46- 1024x315.png" width="819" height="252" /></a> End of Ram Initialisation and first Read/Write cycles | |||
|
Note: Spaces may be added to comparison text to allow better line wrapping.