|
Hi
# {1 R. M2 y" T% N9 i5 q5 v1 M$ l: H
N6 |+ M" p: b) z8 l; f6 z. ^9 R) ~My clock generator is as follow
. m1 m& C7 B/ `' t* X
; W1 u7 C, i" r! d# Q7 s1 o4 R4 j`timescale 1ns/10ps
4 y' m) [! C& ? X% K" Q3 K7 l1 ~5 s0 g' ]7 D% m* F7 h- X0 \
`define period 15
) |% r' ^1 b+ A0 a8 \, q
, Z) Y8 {: v% `module test();
, a& A" X+ y4 v0 yreg clk;, S. J/ N4 k' W& N4 b; w/ Q
% Z$ n, y$ g& O. ^ g( |initial begin
6 ?. A& P8 C6 g" {( v7 J6 _clk = 0;
1 w+ B7 Q; p' v( u7 f P" rforever #(`period/2) clk = ~clk;% ]0 d. f9 O0 L: F; W3 l
end3 R v E5 B$ e5 V" m# K0 Q
. [/ D9 v8 @9 f: v
: l& Q7 |, p# @& |3 d
But i check the waveform the clock period is always 14ns.
9 T8 G3 A! Y/ ?$ W5 e8 a: x; x* @0 y
Could anyone help me the question ?' {2 _8 |4 p6 J1 z
8 X! L& }7 u6 M. a2 x' |Thanks6 Z4 d6 r, {5 U5 Q( H- \' ?
1 \1 j: v7 Y+ Y9 [) {* C2 l% W3 uendmodule |
|