Hi in the below code i am trying to generate the clock but the display present inside the clock generation block is not printing and clock is also not generating due to this my test is hanging, can anyone suggest what might be the issue, in generating the clock, i added the timescale as 1ns/1ns, Thanks in advance.
initial
begin
HCLK=0;
HRESETn= 0;
$display("Assignment done"); // printed
end
initial
forever
begin
#1ns HCLK = ~HCLK;
$display(" generating clock"); //not printed
end
initial
begin
$display("entered loop"); // printed
repeat(10)@(posedge bus_if.HCLK);
HRESETn = 1;
$display("entered loop reset done");// not printed
end
assign bus_if.HCLK=HCLK;
always@(HRESETn) bus_if.HRESETn=HRESETn;