edabored
Newbie level 3
- Joined
- Jun 12, 2013
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 24
I copied the below off of some slides from my class but I don't understand the values in parenthesis (simulation time units). Are these values in error? The third example looks correct, but the first two don't (i.e. the value given in simulation time units). What am I not getting about the use of timescale here? TIA for your input --
- - - Updated - - -
In other words - starting with the third example, 100fs goes into 1.23 ps 12 times -- that makes sense. But the first two examples don't seem to follow that logic. I would expect the first one to say 10ps goes into 1.23 ns 123 times, but it says 12300 simulation times units. Same with the second example, 123 ns at a 1ns precision should be 123 simulation time units right? - I don't understand how those values for simulation time are calculated.
Code:
`timescale 1ns/ 10ps
module module1 (. . .);
not #1.23 (. . .)// 1.23ns (12300 simulation time units)
. . .
endmodule
`timescale 100ns/ 1ns
module module2 (. . .);
not #1.23 (. . .)// 123ns (1230000 simulation time units)
. . .
endmodule
`timescale 1ps/ 100fs
module module3 (. . .);
not #1.23 (. . .)// 1.2ps (12 simulation time units)
. . .
endmodule
- - - Updated - - -
In other words - starting with the third example, 100fs goes into 1.23 ps 12 times -- that makes sense. But the first two examples don't seem to follow that logic. I would expect the first one to say 10ps goes into 1.23 ns 123 times, but it says 12300 simulation times units. Same with the second example, 123 ns at a 1ns precision should be 123 simulation time units right? - I don't understand how those values for simulation time are calculated.