Hello,
I have a DUT that takes:
- data_valid with the following:
(a) Payload (assume a n bit wide bus)
(b) Port number ( assume there are 5 ports)
(c) Backpressure bit from the DUT indicating an “all-stop” - Stimulus cannot drive pkts as long as this bit is set
(d) DUT returns per port credit with a valid
I need some ideas to write a credit checker for handling credit returns (from DUT) and where do I handle them? In the driver? Monitor?
Any example for credit-based driver/monitor/sequence example would be great too.
Thanks!