Random Reset calls

R

RSGUPTA

Guest
Hi Folks,
Need something interesting in random reset:
I am having a testbench in verilog which needs to hit the state
machines states with reset.

Basic Format of testbench:
##############3
initial
begin
----------
---------
fork
begin
// Normal Traffic
end
begin
// Reset task
end
join
------
end
##########

The aim of the 2nd thread in fork-join is to hit the states with Reset
that appear in Normal Traffic.

Now how can we only call the 2nd thread multiple times (Randomly) to
keep on hitting the states that appear in Normal Traffic.
 
On Jun 1, 2:40 am, RSGUPTA <rsgupta.gu...@gmail.com> wrote:
Hi Folks,
Need something interesting in random reset:
I am having a testbench in verilog which needs to hit the state
machines states with reset.

Basic Format of testbench:
##############3
initial
  begin
----------
---------
fork
  begin
// Normal Traffic
  end
  begin
// Reset task
  end
join
------
end
##########

The aim of the 2nd thread in fork-join is to hit the states with Reset
that appear in Normal Traffic.

Now how can we only call the 2nd thread multiple times (Randomly) to
keep on hitting the states that appear in Normal Traffic.
Have you considered the $random function? You could either use it to
create a time delay or a delay count for some number of clock cycles.

John P
 

Welcome to EDABoard.com

Sponsor

Back
Top