Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions umi/lumi/rtl/lumi_rx.v
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ module lumi_rx
.TESTW(1), // width of asic test interface
.PROP("DEFAULT")) // Pass through variable for hard macro
lnk_fifo_i(// Outputs
.wr_almost_full (),
.wr_full (),
.rd_dout (lnk_fifo_dout[CW-1:0]),
.rd_empty (lnk_fifo_empty),
Expand Down Expand Up @@ -781,6 +782,7 @@ module lumi_rx
.TESTW(1), // width of asic test interface
.PROP("DEFAULT")) // Pass through variable for hard macro
req_syncfifo_i(// Outputs
.wr_almost_full (),
.wr_full (sync_fifo_full[0]),
.rd_dout (sync_fifo_dout[IOW-1:0]),
.rd_empty (sync_fifo_empty[0]),
Expand Down Expand Up @@ -809,6 +811,7 @@ module lumi_rx
.TESTW(1), // width of asic test interface
.PROP("DEFAULT")) // Pass through variable for hard macro
resp_syncfifo_i(// Outputs
.wr_almost_full (),
.wr_full (sync_fifo_full[1]),
.rd_dout (sync_fifo_dout[2*IOW-1:IOW]),
.rd_empty (sync_fifo_empty[1]),
Expand Down
1 change: 1 addition & 0 deletions umi/lumi/rtl/lumi_tx.v
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ module lumi_tx
.TESTW(1), // width of asic test interface
.PROP("DEFAULT")) // Pass through variable for hard macro
phy_fifo_i(// Outputs
.wr_almost_full (),
.wr_full (phy_fifo_full),
.rd_dout (phy_txdata[IOW-1:0]),
.rd_empty (phy_fifo_empty),
Expand Down
1 change: 1 addition & 0 deletions umi/sumi/rtl/umi_fifo.v
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ module umi_fifo
la_asyncfifo #(.DW(CW+AW+AW+DW),
.DEPTH(DEPTH))
fifo (// Outputs
.wr_almost_full(),
.wr_full (fifo_full),
.rd_dout (fifo_dout[DW+AW+AW+CW-1:0]),
.rd_empty (fifo_empty),
Expand Down
1 change: 1 addition & 0 deletions umi/sumi/rtl/umi_fifo_flex.v
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ module umi_fifo_flex
la_asyncfifo #(.DW(CW+AW+AW+ODW),
.DEPTH(DEPTH))
fifo (// Outputs
.wr_almost_full(),
.wr_full (fifo_full_raw),
.rd_dout (fifo_dout[ODW+AW+AW+CW-1:0]),
.rd_empty (fifo_empty_raw),
Expand Down
30 changes: 25 additions & 5 deletions umi/sumi/rtl/umi_tester.v
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ module umi_tester
// file names
reg [8*128-1:0] memhreq;
reg [8*128-1:0] memhresp;
reg [8*32-1:0] req_opcode;
reg [8*32-1:0] resp_opcode;

// local state
reg [MAW-1:0] req_addr;
reg [MAW-1:0] req_addr;
reg [MAW-1:0] resp_addr;
reg req_valid;

Expand Down Expand Up @@ -168,19 +170,37 @@ module umi_tester
// Monitor Transactions
//#####################################################

always @*
case(uhost_req_cmd[4:0])
UMI_REQ_READ : req_opcode = "READ";
UMI_REQ_WRITE : req_opcode = "WRITE";
UMI_REQ_POSTED : req_opcode = "POSTED";
UMI_REQ_ATOMIC : req_opcode = "ATOMIC";
UMI_INVALID : req_opcode = "INVALID";
default: req_opcode = "UNKNOWN";
endcase

always @*
case(uhost_resp_cmd[4:0])
UMI_RESP_READ : resp_opcode = "READ-RESP";
UMI_RESP_WRITE : resp_opcode = "WRITE-RESP";
UMI_INVALID : resp_opcode = "INVALID";
default: resp_opcode = "UNKNOWN";
endcase

if(DEBUG) begin
always @ (posedge clk) begin
if (uhost_req_valid & uhost_req_ready)
$display("(request) data=%h srcaddr=%h dstaddr=%h cmd=%h (%0t)",
$display("data=%h srcaddr=%h dstaddr=%h cmd=%h (%0t) (%0s)",
uhost_req_data, uhost_req_srcaddr,
uhost_req_dstaddr, uhost_req_cmd,
$time);
$time, req_opcode);

if (uhost_resp_valid & uhost_resp_ready)
$display("(response) data=%h srcaddr=%h dstaddr=%h cmd=%h (%0t)",
$display("data=%h srcaddr=%h dstaddr=%h cmd=%h (%0t) (%0s)",
uhost_resp_data, uhost_resp_srcaddr,
uhost_resp_dstaddr, uhost_resp_cmd,
$time);
$time, resp_opcode);
end
end

Expand Down
Loading