|
Hi
& }4 z# D7 P. a5 T9 }
2 I8 l$ k* ^2 w4 M6 M' v- DMy clock generator is as follow, L! r% W4 v1 U4 P d& M) R" B
1 M) X' ]; s! p+ s! N/ Z`timescale 1ns/10ps
?* `+ T! U" c- h6 o$ r( V, b' }" s w% B9 G
`define period 15
% R ]2 r$ H1 N, g; B
/ o2 j8 a: S9 Z1 F/ d, |8 ]module test();* [* \ Z6 H; ]9 o2 W
reg clk;
* G. b" K/ ]7 ?7 G ^
1 V! [& p5 B) g, N6 finitial begin
1 s5 x& f) _* b+ b1 y6 o( {clk = 0;) l' ?' z7 c$ ~) @7 f$ ^
forever #(`period/2) clk = ~clk;4 B2 d( p3 ?* U+ x3 }6 R( t; n
end8 L7 ]: r$ N% z& k& {0 k5 ]
$ K, q& Y; c- ~/ w- Q8 X# v
) n. Q; Z0 k7 a3 R( x$ {But i check the waveform the clock period is always 14ns.
0 p6 x" ]6 H: w
5 x" h" I- u2 Y* [1 p$ ?- WCould anyone help me the question ?
+ X! i' \% o2 u% P: b5 J Z
9 N5 r# t2 @! t" `4 _Thanks+ i/ h5 j; a6 W# Z1 |% ]2 A j
/ R) z2 `0 a! N( L! l1 W; Zendmodule |
|