Commit 3f5f59be authored by Dimitris Lampridis's avatar Dimitris Lampridis

hdl/sim: update wrtd-system testbench to make use of rmq-udp test firmware

parent 84dd8b5b
......@@ -104,7 +104,7 @@ module main;
IMockTurtleIRQ IrqMonitorB (`MT_ATTACH_IRQ(DUT_B.cmp_mock_turtle));
string fw = "../../ip_cores/mock-turtle/demos/hello_world/firmware/fw-01/fw-hello.bin";
string fw = "../../../tests/firmware/rmq-udp/fw-rmq-udp.bin";
const uint64_t mt_base = 'h2_0000;
......@@ -116,19 +116,19 @@ module main;
@(posedge DUT_A.clk_sys_62m5);
drvA = new (HostA.get_accessor(), mt_base, IrqMonitorA, "DUTA");
drvB = new (HostB.get_accessor(), mt_base, IrqMonitorB);
drvB = new (HostB.get_accessor(), mt_base, IrqMonitorB, "DUTB");
drvA.init();
drvB.init();
drvA.enable_console_irq (0, 1);
drvB.enable_console_irq (0, 1);
drvB.enable_console_irq (1, 1);
drvA.load_firmware(0, fw, 1'b0);
drvB.load_firmware(0, fw, 1'b0);
drvB.load_firmware(1, fw, 1'b0);
drvA.reset_core(0, 0);
drvB.reset_core(0, 0);
drvB.reset_core(1, 0);
forever begin
drvA.update ();
......
#include <mockturtle-rt.h>
#define MT_WR_LINK_READY (MT_CPU_LR_WR_STAT_LINK_OK | MT_CPU_LR_WR_STAT_TIME_OK)
void send_pkt(int rmq)
{
struct trtl_fw_msg msg;
......@@ -41,6 +43,11 @@ int main(void)
pp_printf("TEST for: RMQ UDP %s\n", cpu == 0 ? "recv" : "send");
while ((lr_readl(MT_CPU_LR_REG_WR_STAT) & MT_WR_LINK_READY) != MT_WR_LINK_READY)
;
pp_printf("WR link up and time valid\n");
// set up the RMQ Endpoint
// we operate only with UDP frames
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment