|
Hi
" a4 N: Q$ p# }) `/ F6 l1 |# q* x' u/ P
My clock generator is as follow
) P! }' q* Z* D
9 o# G1 W4 ^9 n* a0 T8 e`timescale 1ns/10ps, `' Q+ X8 ^3 q% X
4 x8 \% ]0 R- z/ O/ [6 X
`define period 15/ Y- P3 f5 J2 p
4 o3 u z6 O5 k3 K, Z3 Amodule test();
% F) {9 R8 q9 ?+ ^4 w/ Freg clk;
; _4 h8 U! |: G2 J: p' `! H; t
+ B$ m3 w* Y+ ^4 P5 vinitial begin
6 t$ ] H3 g! w& [clk = 0;
- ?. D! x3 q7 m( X# d# {, Xforever #(`period/2) clk = ~clk;
* A7 P2 a6 t; p* S4 ]/ Mend2 Z3 G# d0 b$ c: s
# V( F' u( U" `3 P5 o( J2 A7 |3 r* b
: j$ M$ n3 j7 j+ H# kBut i check the waveform the clock period is always 14ns.4 x$ r( n$ y! d( m* h: l# `
1 |9 L$ G4 _0 J6 x- R: [; [Could anyone help me the question ?$ m h' Z w% X9 h8 {! \+ f
! Z# F( R. b0 v! u7 e8 Q
Thanks, ]* L+ E( [5 l- d
5 U* q1 M O1 t7 f
endmodule |
|