Professional Documents
Culture Documents
Verilog
Verilog
output D, E;
input A, B, C;
wire w1;
and #(30) G1 (w1, A, B);
not #(10) G2 (E, C);
or #(20) G3 (D, w1, E);
endmodule
-----------------------------------------------------------------------------------------------------------------------------------------------------------module t_Simple_Circuit_prop_delay;
wire D, E;
reg A, B, C;
Simple_Circuit_prop_delay M1 (A, B, C, D, E); // Instance name required
initial
begin
A = 1'b0; B = 1'b0; C = 1'b0;
#100 A = 1'b1; B = 1'b1; C = 1'b1;
end
initial #200 $finish;
endmodule
the signal activity associated with initial terminates execution when the last s
tatement has finished executing
input A, B, select;
tri m_out;
bufif1 (m_out, A, select);
bufif0 (m_out, B, select);
endmodule
wire and tri are examples of a set of data types called nets.
The word net is not a keyword, but represents a class of data types, such as wir
e , wor, wand, tri, supply1, and supply0.
The net wor models the hardware implementation of the wired-OR configuration(emi
tter-coupled logic).
The wand models the wired-AND configuration (open-collectortechnology).
The nets supply1 and supply0 represent power supply and ground, respectively.
----------------------------------------------------------DATA FLOW MODELING------------------------------------------------------------------------------Dataflow modeling of combinational logic uses a number of operators that act on
binary operands to produce a binary result.Verilog HDL provides about 30 differe
nt operators.
------------------------------------------------------------------------------------------------------------------------------------------------------------