Testbench signal driving right at clock edge, how does the simulator behave?

In reply to silverace99work:

  1. It is non-traditional to have drivers apply assignments as
#170ns arbif.cb.request <= 2;  // BAD STYLE.
@arbif.cb arbif.cb.request <= 2;  // GOOD STYLE
  1. I experimented with the following
    https://www.edaplayground.com/x/3K4P
@ (cb1) a <= 2;
//@ (cb1) a <= 1;   // NONBLOCKING assignment
#100 a <=1;
vs
@ (cb1) a <= 2;
@ (cb1) a <= 1;   // NONBLOCKING assignment
//    #100 a <=1;

below are the results

  1. Am not totatlly clear as to why #100 a <=1; is different than @ (cb1) a <= 1; when the 2 time occurrences are at the same identical time (e.g., 250ns).
    After more thoughts, it looks like the #100 a <=1; behaves in a blocking type of fashion and the transaction completes. However, for the @ (cb1) a <= 1; the “a” get assigned in the NBA region. This results in different values being assigned to “b”. See from my book the various regions.

Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us