nawaz.mjcet
Newbie level 6
HI all,
I'm verifying GPIO contrroller with APB interface using UVM.so the clock frequency i'm using is 100MHZ but later i was asked to change the clock frequency to 75MHZ .so how to genetare a stable clock with 75MHZ frequency.
This is code what i have in my mind
bit clk;
`timescale 1ns/1ns
CLOCK_PERIOD = 1/75;
DELAY = CLOCK_PEROD / 2 ;
#DEALY clk = ~clk;
i'm not sure whether i can use the above code as it delay which i'm using is a REAL number.so please suggest a better apporoach to generate a clock with 75 MHZ frequency.
Thanks in Advance,
Nawaz.
I'm verifying GPIO contrroller with APB interface using UVM.so the clock frequency i'm using is 100MHZ but later i was asked to change the clock frequency to 75MHZ .so how to genetare a stable clock with 75MHZ frequency.
This is code what i have in my mind
bit clk;
`timescale 1ns/1ns
CLOCK_PERIOD = 1/75;
DELAY = CLOCK_PEROD / 2 ;
#DEALY clk = ~clk;
i'm not sure whether i can use the above code as it delay which i'm using is a REAL number.so please suggest a better apporoach to generate a clock with 75 MHZ frequency.
Thanks in Advance,
Nawaz.