|
Hi 4 Z1 s1 W7 |$ h0 l5 ^
, e) _, A/ x: n* U! l& b2 \" dMy clock generator is as follow
' D; Q! f# t6 {* ^# [+ N) i+ y2 q) t9 Q; W( w( z4 P( V
`timescale 1ns/10ps
w' |$ H G- L+ C+ O
2 O1 N8 r- w9 S, p3 C# r' V& z`define period 15
$ W8 c* {. o u M
+ f: i, }. o Y2 omodule test();
7 T' {! q& e* p# i* a. [1 A+ wreg clk;# @* K U0 Z, D5 s9 ]/ m$ I) g
( E3 E2 u& [5 {8 U1 U0 P$ D2 y3 `initial begin% K) A2 p- c. F& C- G1 v
clk = 0;
' x; o7 ?5 m" S+ |. Bforever #(`period/2) clk = ~clk;
" l5 \, g* X; _* Qend
1 S; `3 a6 o( p7 R+ A& u0 F+ Y }# ^/ y* S/ e
$ B. L; M! x* h ]5 MBut i check the waveform the clock period is always 14ns.
# j4 x$ D! a! {' W. P" I4 w: E* j) s; w+ w! r
Could anyone help me the question ?
6 A9 r3 A) L d; V- o! F+ V
* Z8 G% f1 Y* B$ KThanks
E% p: |( b: S$ c) w* G+ x! A; p$ a" R, U& f& B+ `
endmodule |
|