Hello Suraj,

I know this is going to be a lot to ask, but have you thought
about creating a threading methodology for synchronizing two
ruby processes.

Essentially I want to do the following in ruby.

module test;
reg clk; initial clk = 0;
dut dut_inst (.clk_input(clk));

initial forever #5 clk = ~clk;

initial
  begin
    repeat (5) @(posedge clk);
    $display("Five cycles have passed");
    repeat (5) @(posedge clk);
    $display("Another five cycles have passed");
  end

endmoule

Using the ruby threads mechanism and encapsulating
those two inital blocks on separate threads doesn't work
because the ruby threads have a different context switch
mechanism.

Calvin

Reply via email to