|
Hi " I3 u0 [+ ?$ j
7 p8 B& @. z- I9 L" V
My clock generator is as follow
; l( i, Y9 ?; @- A: N
) o d; H5 h) }5 J0 @0 r5 L9 u`timescale 1ns/10ps& ? |: v: \" h& O
4 c4 h7 S( |, X+ b* ]$ z`define period 15
; t. F8 {* H& @' L3 d6 T
6 |! A0 Q" O+ }: Z. V5 `module test();0 s4 V4 Y+ ]' q
reg clk;9 A7 _3 q& M& R+ c
% w8 L( ^7 x$ ~9 G
initial begin
$ c2 t- D5 S/ N6 ^& j- Pclk = 0;
3 L% A- k- i& q" |, hforever #(`period/2) clk = ~clk;! y( s, s) u* S' S! n. R
end% I/ p9 D( x/ Q- O2 C$ A
5 f; n4 \: A( g( b9 `, ]) l
) R% _8 g% E9 y1 x9 e8 U JBut i check the waveform the clock period is always 14ns.% j5 ^) w5 F6 O A$ Y9 i
/ k! D( G( a. A" J; ?Could anyone help me the question ?
3 n* V) C) r+ H4 T% m
O( m# A% x5 O3 O( W d7 E$ jThanks
1 R# }! q$ F/ B) H0 k+ J7 X: _7 ?+ O* k2 J- G3 _! w
endmodule |
|