Dataflow Modelling
Dataflow Modelling
Why Dataflow ?
Any digital system
• Interconnecting registers
• Combinational logic circuits
• Operators
• Operands
Operators
Bitwise operators
Logical operators
Replication operator
Conditional operators
Operands
• constants
• parameters
•• variables
nets (reg, integer, time, real, realtime)
• bit-select
part-sel
•
• function calls
• array element
Three Ways of Specifying Delays
Regular assignment delay
Implicit continuous assignment delay
Net declaration delay
Regular Assignment Delays
The inertial delay model is defaulted
If in1 or in2 changes value again before 10time units when the result
propagates to out, the values of in1 and in2 at the time of recomputation
are considered. This property is called inertial delay. It is useful in order
to ignore input glitches whose duration is less than the port delay.
assign #10 out1d = in1 & in2; in1 = 1’b0; in2 = 1’b0;
#10 in1 = 1’b0; in2 = 1’b0;
//Implicit Continuous Assignment Delays #10 in1 = 1’b0; in2 = 1’b0;
wire #10 w3d = in1 & in2; #10 in1 = 1’b0; in2 = 1’b0;
assign out3d = w3d;
end
wire #10 w2d; //net declaration delay
assign w2d = in1 & in2; endmodule
assign out2d = w2d;
Assignment
1) Write a verilog dataflow code for the logic diagram and verify the result