Introduction To HDL: Shaikh Khaled Mostaque Assistant Professor Eee Ru
Introduction To HDL: Shaikh Khaled Mostaque Assistant Professor Eee Ru
Introduction To HDL: Shaikh Khaled Mostaque Assistant Professor Eee Ru
HDL
SHAIKH KHALED MOSTAQUE
ASSISTANT PROFESSOR
EEE RU
HDL
• Specialized computer language used to describe the structure and
behavior of electronic circuits, more commonly digital circuits.
• It enables a precise, formal description of an electronic circuit
that allows for the automated analysis and simulation of an
electronic circuit.
• It also allows for the synthesis of a HDL description into
a netlist (a specification of physical electronic components and
how they are connected together), which can then be placed and
routed to produce the set of masks used to create an integrate
circuit.
Source: Wiki
EXAMPLES OF HDL
• Verilog®-HDL and
• VHDL : VHSIC Hardware Description Language
HDL MODELING CAPACITY:
VERILOG VS VHDL
LOW LEVEL MODELING:
VERILOG
• In terms of low-level hardware modeling, Verilog is better than VHDL.
• It is reasonable because Verilog is originally created for modeling and
simulating logic gates. In fact, Verilog has built-in primitives or low-
level logic gates so that designers can instantiate the primitives in
Verilog code while VHDL does not have it.
• Verilog's gate primitives: and, nand, or, nor, xor, xnor, buf, not, bufif0,
notif0, bufif1, notif1, pullup, pulldown.
• Verilog's switch primitives: pmos, nmos, rpmos, rnmos, cmos, rcmos,
tran, rtran, tranif0, rtranif0, tranif1, rtranif1.
• More importantly, Verilog supports User-Defined Primitives (UDP) so
that designers can define their own cell primitives. This feature is
especially necessary and popular for ASICs designers.
https://www.fpga4student.com/2017/08/verilog-vs-vhdl-explain-by-example.html
CODE
HIGH-LEVEL MODELING: VHDL
Verilog Compiler will not introduce syntax errors when you assign
4-bit signal to 8-bit signal. In Verilog, signals with different bits
width can be assigned to each other. Verilog compiler will adapt the
width of the source signal to the width of the destination signal.
Unused bits will be optimized during synthesis.
OTHER DIFFERENCES
• VHDL: complex data types VERILOG: simple data types
• Verilog is like C programming language, while VHDL is like Ada or Pascal
programming language
• Verilog is case-sensitive while VHDL is not. It means that DAta1 and Data1
are two different signals in Verilog, but both are the same signals in VHDL.
• In Verilog, to use a component instance in a module, you just need to
instantiate it in the module with a correct port map. In VHDL, before
instantiating the instance, the component generally needs to be declared the
architecture or in a package if you use the old instantiation statement as the
following example. In VHDL-93, you can instantiate the entity directly like
this: "Label_name: entity work.component_name port map (port list);".