Combinatorial driving & monitoring

Hello,

I have requirement where by I need to create a reactive response for a combinatorial interface, which means the response to be driven on the same clock cycle when the input to tb changes value. For example, I have and id (output from DUT) and value (input to DUT) as the interface signals. The design presents an id for which the Tb should respond with a value. I have hooked up the monitor of the IVC to it's sequencer's export, on a which a sequence runs which randomizes the value for each id seen. But, I am having problems in either sampling or driving in the sense, when I am sample without the clocking block I am unable to see the changed value and on the other hand, if I sample on the clocking block, then the sampled value comes in a clock after. Even if I drive without the clocking block the "value" gets driven on the next clock.

Could anyone explain me how to handle such a case. Any example is highly appreciated

Thanks in advance,
Madhu

In reply to mseyunni:

I’m not sure what your intention is. But it looks like you are feeding some data to your combinatorial logic. This is not a good coding style and it might result in a latch. I believe you should think about the behavior ouf your logic.

In reply to chr_sue:

Yes. Unfortunately, the design interface is combinatorial for which I need to create a stimulus.

In reply to mseyunni:

Even I am in this situation. Were you able to figure out a solution?