In reply to Arshia:
Hi Arshia,
As Ben explained, we cant use assertion for generating clock. In this problem, I used assertions to verify my clock.
If you want to generate 25 MHz clock, follow the below instructions.
Quote:
Convert 25MHz into time period terms.
25 MHz -> 40 ns in time period
As the duty cycle is 50%, the clock changes its value every 20 ns
Use the below code for 25 MHz clock
`timescale 1ns/1ps
module tb;
bit clock;
always
#20 clock = !clock;
endmodule