You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working with a cocotb test harness I inherited. It makes use of the cocotb_bus.monitors.avalon library. Test data is sent to the DUT by defining an Avalon ST driver like so:
The DUT acutally has AXIS interfaces so I wanted to use the cocotbext-axi library. Is there a way I can do something similar using the cocotbext.axi.AxiStreamMonitor using a callback similar to the above? Or is there another way to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I've been working with a cocotb test harness I inherited. It makes use of the cocotb_bus.monitors.avalon library. Test data is sent to the DUT by defining an Avalon ST driver like so:
self.data_in = AvalonSTDriver(dut, "din", dut.clk)
The test harness also includes a model of the DUT for which it defines an Avalon ST monitor with a callback to the modelling function like so:
self.data_monitor = AvalonSTMonitor(dut, "din", dut.clk, callback=self.model)
The model then uses the data like so:
The DUT acutally has AXIS interfaces so I wanted to use the cocotbext-axi library. Is there a way I can do something similar using the cocotbext.axi.AxiStreamMonitor using a callback similar to the above? Or is there another way to do this?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions