Skip to content

Commit

Permalink
Merge pull request #1234 from Xilinx/preusser.axi_pad_zero
Browse files Browse the repository at this point in the history
Driving AXI bus padding to zero.
  • Loading branch information
auphelia authored Nov 22, 2024
2 parents e8e9ce3 + 60fdd42 commit 24357f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion finn-rtllib/thresholding/hdl/thresholding_axi.sv
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ module thresholding_axi #(
.cfg_rack, .cfg_q,

.irdy(s_axis_tready), .ivld(s_axis_tvalid), .idat,
.ordy(m_axis_tready), .ovld(m_axis_tvalid), .odat(m_axis_tdata)
.ordy(m_axis_tready), .ovld(m_axis_tvalid), .odat(m_axis_tdata[PE*O_BITS-1:0])
);
if($bits(m_axis_tdata) > PE*O_BITS) begin : genPadOut
assign m_axis_tdata[$left(m_axis_tdata):PE*O_BITS] = '0;
end : genPadOut

endmodule : thresholding_axi
2 changes: 1 addition & 1 deletion finn-rtllib/thresholding/sim/thresholding_axi_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ module thresholding_axi_tb #(
end
join_any
done <= 1;
repeat(N+6) @(posedge clk);
repeat(2*N+8) @(posedge clk);

assert(QW.size() == 0) else begin
$error("Missing %0d outputs.", QW.size());
Expand Down

0 comments on commit 24357f4

Please sign in to comment.