|
Hi 7 i6 P: D# a3 Q
$ O' ^1 W0 I5 ~+ @My clock generator is as follow7 ^* a+ A! H$ K6 q% a) n- o
" y5 _, M! [1 H' X, J`timescale 1ns/10ps
/ x! Z7 u+ W5 e1 N2 ~1 q( ~3 [
`define period 15
' L6 Y$ e, D; w4 M) r# \9 ~& d1 m# v$ q7 M3 I
module test();
" L4 [3 `% I6 {7 ^ B3 \# K% @reg clk;( }/ a! u3 K B" Q
' w2 A+ n- u/ j; ^initial begin/ L. M0 R8 i% I# ^4 k# k; l K. j
clk = 0;
. b" g. p3 S4 q& i% dforever #(`period/2) clk = ~clk;, ` v0 Z6 m2 J* R
end. s& A+ N# a7 i# H7 U1 P- l7 i% w; t
/ Z- x4 ^( J" }& K+ f
/ g- m0 W. d1 r- ]But i check the waveform the clock period is always 14ns.5 L- {3 K! R1 H8 f4 q1 C
0 R1 x7 g4 v' L4 V$ ]" V' c: sCould anyone help me the question ?
, K0 H' W1 j3 N5 a2 M8 ~
; a8 M8 Z5 {2 v4 p3 sThanks, p8 Q- x9 t5 z7 P
* ~" R; h9 _4 z% q
endmodule |
|