|
Hi
. ^4 a5 e& x) ^! f8 U+ H" [
. B% h# U# f+ h0 iMy clock generator is as follow% p8 _. _$ E, j% J; s: X+ g
9 g1 y8 x4 E, O1 k1 I- j7 v`timescale 1ns/10ps
6 [; m; ^/ A" m9 y' q A( C- @ p# u) Z% i8 n
`define period 15
- k5 a$ z) T9 B7 _4 a* Y+ M( w% @$ S2 E5 ?/ g6 a a
module test();& @" x& [" N5 A; M0 E
reg clk;; @: F! H# A; p2 \
_' F( l+ H/ `9 p$ o$ ^- H1 u# Dinitial begin
6 |# f' ^* O9 Sclk = 0;
/ q' u' E5 ]( C1 F, @$ w& `3 cforever #(`period/2) clk = ~clk;
( z- E1 y& R1 L# W: E# ]0 d, V. Qend6 l! V* w7 J3 I4 k, G0 [) Z
- B$ ? b2 N+ D* V6 I5 |+ n/ G- C
3 q# k+ A" q9 ]- V+ C1 D4 GBut i check the waveform the clock period is always 14ns.
! D/ v1 H) h6 _1 h
/ |( E- ~$ g% R. NCould anyone help me the question ?
- f9 I7 m% b- q/ t
0 j" L4 D: q! J8 H' PThanks" ?% ]) K5 O4 d C5 _; N% f, `) r
. f+ u' Y0 ]- R' v a
endmodule |
|