1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Bypass check when unneeded

This commit is contained in:
Alex Forencich 2019-10-30 22:57:56 -07:00
parent 25454e712e
commit 4e95fb3677
2 changed files with 2 additions and 2 deletions

View File

@ -339,7 +339,7 @@ always @* begin
AXI_STATE_START: begin AXI_STATE_START: begin
// start state - initiate new AXI transfer // start state - initiate new AXI transfer
if (!m_axi_arvalid) begin if (!m_axi_arvalid) begin
if (op_word_count_reg <= AXI_MAX_BURST_SIZE - (addr_reg & OFFSET_MASK)) begin if (op_word_count_reg <= AXI_MAX_BURST_SIZE - (addr_reg & OFFSET_MASK) || AXI_MAX_BURST_SIZE >= 4096) begin
// packet smaller than max burst size // packet smaller than max burst size
if (addr_reg[12] != addr_plus_count[12]) begin if (addr_reg[12] != addr_plus_count[12]) begin
// crosses 4k boundary // crosses 4k boundary

View File

@ -425,7 +425,7 @@ always @* begin
end end
STATE_START: begin STATE_START: begin
// start state - initiate new AXI transfer // start state - initiate new AXI transfer
if (op_word_count_reg <= AXI_MAX_BURST_SIZE - (addr_reg & OFFSET_MASK)) begin if (op_word_count_reg <= AXI_MAX_BURST_SIZE - (addr_reg & OFFSET_MASK) || AXI_MAX_BURST_SIZE >= 4096) begin
// packet smaller than max burst size // packet smaller than max burst size
if (addr_reg[12] != addr_plus_count[12]) begin if (addr_reg[12] != addr_plus_count[12]) begin
// crosses 4k boundary // crosses 4k boundary