|
Hi
7 \* O& ^ ^( `1 s/ r# g* e
8 ?0 ?" | t6 g h1 BMy clock generator is as follow
: b7 P/ m% \- _& E; W" [: Q/ J% Z) J( ~0 J9 \* {
`timescale 1ns/10ps
9 @! F- |' ]3 Y* }& U# F! d- w+ O
* C! Z( J3 ]4 }( @`define period 15
6 J& @9 o( q/ y' d8 N) E2 X V$ a" u# P) v, [( F
module test();0 C/ B3 ] ^( |) d/ M9 Y
reg clk;& p5 q" d5 J6 @0 P1 g
* A) M1 J7 P x2 z8 ]
initial begin5 ~& u' q9 o1 C( T. H
clk = 0;( z, S: y6 s! [
forever #(`period/2) clk = ~clk;
$ L8 @+ w; T* s3 V1 U, oend
1 |7 D5 O |' C) `% r
5 y) p: y7 H# s5 _0 Y% j
! g# s E+ W7 D6 p0 P& M sBut i check the waveform the clock period is always 14ns. W* c% S l9 k( J
4 e( I5 H/ t! Q0 [. ~Could anyone help me the question ?( L% V; X8 g$ Z
& l. I. D5 M, L4 h# |
Thanks8 h- C/ E" S" L8 \
3 G8 w7 Y! J. h8 F; m# z( {! _% A
endmodule |
|