VERILOG HDL - Tutorial, PPT Format
VERILOG HDL - Tutorial, PPT Format
Behavioral /Algorithmic
Data flow
Gate level
Switch level.
toplevel_fa tl(sum,c_out,a,b,c_in);
//stimulate inputs
initial
begin
a = 4'b0000; b = 4'b0010; c_in = 1'b0;
#1 $display (“ a = %b, b = %b, c_in = %b, sum = %b", a, b, c_in, sum);