|
Hi
5 O3 r/ d( _0 q" a& ^5 P6 O
* N" t% l; ?8 y3 iMy clock generator is as follow
" o; _6 n; x b1 h3 ]" b& M/ H4 Z* ^) u3 X
`timescale 1ns/10ps" E( ^& M( H+ \. i) j( n
( Q% V7 `8 I: u
`define period 15
; z0 {" K i3 f0 D% h, ]( q, Q7 V* P
module test();
, q, C( l# C/ n4 t5 breg clk;
5 v6 w2 a5 Q$ Q# y5 E) y
P& l0 g W8 g' linitial begin# q6 x! `. g/ m1 Z9 _ R
clk = 0;% e; Z& j5 H5 a# v {
forever #(`period/2) clk = ~clk;
5 ^5 k/ Y+ x$ J% Nend
8 F/ F: p# U0 R$ a& {0 ] S0 A |/ U; T+ W) e3 ^
/ t* O$ Z$ f% d% i) y# ?) ZBut i check the waveform the clock period is always 14ns.
8 @+ R$ \0 ?( M8 ^; \2 c. i8 {6 h+ c: O) O! M W
Could anyone help me the question ?
) X) ?" c& v6 x: X/ n; [
* G/ T) Q9 S7 ^" D$ hThanks
6 K& u0 B e7 d7 `1 v) |8 b& A( g) V: x
endmodule |
|