Why the directive `timescale should be used?
Suppose if we donot use the 'timescale directive, and mention the delays like #10, etc, how the simlator will consider it?
Hi
`timescale directive is not used to produce delays like #10
Added after 4 minutes:
let us consider
`timescale 1ns/1ps
reg set;
parameter d = 1.55
initial
begin
#d set = 0;
#d set = l;
end
endmodule
The `timescale tells the system to use 1 ns for all reporting and internally use 1 ps
for resolution of time in this part of design. Thus, the value for parameter d is scaled
to a delay of 1.55 ns. Had we used timescale directive `timescale 10ns/1ns, 1.55
would mean 15.5 or 16 ns. The first part of `time-scale gives the time-units and the
second part gives the time-precision.