|
Hi ( O$ g% t, T9 A2 u3 Q2 [4 n
# ]0 T+ X' R* V9 q; S# y
My clock generator is as follow
6 q, P& c" d& i. r4 j5 D- O
8 D6 t6 F- q, }* [: I`timescale 1ns/10ps, _5 v9 k$ [6 `' H
6 ?5 y. i# K; ]7 ?, e% k+ _
`define period 15
# W" P6 F" ?9 j4 U0 G5 u/ D) _5 p( K) q3 c" e9 g2 |5 g
module test(); C* [7 w! C3 J8 G) [
reg clk;
" ~1 p+ P3 k6 q z
0 v6 |) o+ a# h3 ~- rinitial begin
. C9 u0 l& d9 vclk = 0;) D; S" |( A* u! O. f% e$ P
forever #(`period/2) clk = ~clk;
' N9 t9 r" k4 send
/ h$ O; q, s: X: M5 g2 D, W# }! A+ ?: K3 m% L
2 I' k8 ?: o0 ~% j. P5 lBut i check the waveform the clock period is always 14ns.. E3 ?7 [0 d# Z( }% w
7 V6 G; f) W& a
Could anyone help me the question ?
# l$ J; L) |3 K, t S8 V( X6 y9 j# ^% d7 G" r+ s
Thanks
& T. d1 A$ d0 N% v/ l
1 @" Z6 \3 _+ _' J3 k! gendmodule |
|