Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction to VHDL
HDL is short for Hardware Description Language VHDL VHSIC Hardware Description Language (VHSIC: Very High Speed Integrated Circuits) VHDL is a standard developed by IEEE (Institute of Electrical and Electronics Engineers) We will use DirectVHDL program for writing and simulating VHDL codes.
DirectVHDL
An interactive VHDL simulator Allows editing and simulating VHDL design without complicated setup or compilation procedures DirectVHDL includes the following: - VHDL Workspace - VHDL Editor - VHDL Simulator - VHDL Tutorial
Using DirectVHDL
Double click the symbol to open the VHDL Workspace. VHDL Workspace is a manager that serves as a starting point to launch the VHDL editor and simulator. It is the main workstation of DirectVHDL program.
VHDL Workspace
VHDL Workspace
VHDL Editor
Adding Trace/Watch
Programming in VHDL
There are three programming strategies in VHDL: - Dataflow - Structural - Behavioral Most of time a mixture of these three methods are used. Each statement in VHDL ends with ; The comment lines begin with --
component and_gate port(a1,b1: in bit; c1: out bit); end component; component nor_gate port (a2,b2: in bit; c2: out bit); end component; component or_gate port (a3,b3: in bit; c3: out bit); end component;
begin n1:and_gate port map (a4,b4,e4); n2:nor_gate port map (c4,d4,f4); n3:or_gate port map (e4,f4,g4); end structure;
Behavioral Programming
Blackbox approach to modeling. Used to model complex components that would be tedious to model using the other methods. Behavioral descriptions are supported by process statement The statements in the process are used to compute the outputs of the process from its inputs.
A behavioral & structural programming example: 4-bit Binary Counter Design using D-Flip Flops
References
DirectVHDL Help Content