Need to generate clock using counter logic inside forever-begin
This is to get a simple way to generate.
Or else’
if we use this way,
initial begin
my_clk = 0;
forever begin
#1ns; //1 GHz
my_clk = ~my_clk;
end
end
Everytime we need to change delay value.Is there a way to generate using counter so that initially we can give a 16 bit value then by count= count +1 it goes on incrementing.
You need more explanations. “Everytime we need to change delay value” Everytime relative to what? A counter needs a clock, then you can use the output of the counter to generate another clock.