IIT Bombay
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
GHDL- VHDL Simulator
CDEEP Autumn 2009
Presented by- Anil Powai Labs Tech. Pvt. Ltd.
IIT Bombay CDEEP Autumn 2009 GHDL- VHDL Simulator Presented by- - - PowerPoint PPT Presentation
IIT Bombay CDEEP Autumn 2009 GHDL- VHDL Simulator Presented by- Anil Powai Labs Tech. Pvt. Ltd. EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini IIT Bombay GHDL : VHDL Simulator GHDL is a VHDL
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
CDEEP Autumn 2009
Presented by- Anil Powai Labs Tech. Pvt. Ltd.
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
VHDL program.
– GHDL directly translates a VHDL file to machine code. – Faster compilation and analysis of code. – Produces a VCD file which can be viewed with a wave viewer. – GHDL aims at implementing VHDL as defined by IEEE 1076. – It supports most of the 1987 standard and most features added by the 1993 standard.
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
– Full Adder (Behavioural) example with single library. – Full-adder (Structural) example with multiple libraries.
– This creates an executable.
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
– It is behavioural description of full adder using two concurrent assignments for sum (s) and carry_out (co) outputs.
full_adder_tb.vhdl. – Full_adder_tb.vhdl is self checking test bench.
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
– Analysis of design and testbench files : Commands given below are used to analyze the design files present in directory RTL/ and TB/. VHDL files present in directories RTL/ and TB/ are compiled into library ‘work’.
– Elaboration of design and testbench : command given below will create the executable with ‘testbench’ name.
– Runing simulation: command given below is used to run executable for 1 ms and dump simulation results into file output.vcd.
– To observe waveform use following command.
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
– It is structural description of full adder using ‘or_gate’, ‘xor_gate’ and ‘and_gate’ components. – ‘xor_gate’ and ‘and_gate’ are referred from library ‘work’ , while ‘or_gate’ is referred from library ‘lib1’. – Package ‘component_package_work’ has component declaration
library ‘work’. – Package ‘component_package_lib1’ has component declaration
full_adder_tb.vhdl.
library ‘work’.
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
– Analysis of design and test bench files : Commands given below are used to analyze the design files present in directory LIB1/, RTL/ and TB/. VHDL files present in LIB1/ are compiled in library ‘lib1’, while VHDL files present in directories RTL/ and TB/ are compiled into library ‘work’.
ghdl -a --work=work RTL/*.vhd ghdl -a --work=work TB/*.vhd
– Elaboration of design and test bench : command given below will create the executable with ‘full_adder_tb’ name.
– Runing simulation: command given below is used to run executable for 1 ms and dump simulation results into file
– To observe waveform use following command.
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini
Perry.
EE705/707 Lecture No. 22 Prof. Maryam Shojaei Baghini