Re: How to difine different propagation delays by using Veri
Hi ken_cn,
Try this:
##################################################
`timescale 1ps/1ps
module 3_con_nand(
in0,
in1,
con,
out
);
parameter con_0_delay = 1, // You can change this value to you want
con_0_delay = 2,
con_0_delay = 3;
input in0;
input in1;
input [1:0] con;
output out;
always@(con or in0 or in1)
case(con)
2'b00:
out = #con_0_delay ~(in0 & in1);
2'b00:
out = #con_1_delay ~(in0 & in1);
default:
out = #con_2_delay ~(in0 & in1);
endmodule
#############################################