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

Remove irrelevant address computation

This commit is contained in:
Alex Forencich 2021-10-01 15:56:51 -07:00
parent d97ac3105f
commit aee1431e74
3 changed files with 6 additions and 6 deletions

View File

@ -617,9 +617,9 @@ always @* begin
req_tlp_count_next = req_op_count_reg;
dword_count = (req_op_count_reg + req_pcie_addr_reg[1:0] + 3) >> 2;
req_last_tlp = 1'b1;
// optimized req_pcie_addr = req_pcie_addr_reg + req_tlp_count_next
// always last TLP, so next address is irrelevant
req_pcie_addr[PCIE_ADDR_WIDTH-1:12] = req_pcie_addr_reg[PCIE_ADDR_WIDTH-1:12];
req_pcie_addr[11:0] = req_pcie_addr_reg[11:0] + req_op_count_reg;
req_pcie_addr[11:0] = 12'd0;
end
end else begin
// packet larger than max read request size

View File

@ -578,9 +578,9 @@ always @* begin
req_tlp_count_next = req_op_count_reg;
dword_count = (req_op_count_reg + req_pcie_addr_reg[1:0] + 3) >> 2;
req_last_tlp = 1'b1;
// optimized req_pcie_addr = req_pcie_addr_reg + req_tlp_count_next
// always last TLP, so next address is irrelevant
req_pcie_addr[PCIE_ADDR_WIDTH-1:12] = req_pcie_addr_reg[PCIE_ADDR_WIDTH-1:12];
req_pcie_addr[11:0] = req_pcie_addr_reg[11:0] + req_op_count_reg;
req_pcie_addr[11:0] = 12'd0;
end
end else begin
// packet larger than max read request size

View File

@ -596,9 +596,9 @@ always @* begin
req_tlp_count_next = req_op_count_reg;
dword_count = (req_op_count_reg + req_pcie_addr_reg[1:0] + 3) >> 2;
req_last_tlp = 1'b1;
// optimized req_pcie_addr = req_pcie_addr_reg + req_tlp_count_next
// always last TLP, so next address is irrelevant
req_pcie_addr[PCIE_ADDR_WIDTH-1:12] = req_pcie_addr_reg[PCIE_ADDR_WIDTH-1:12];
req_pcie_addr[11:0] = req_pcie_addr_reg[11:0] + req_op_count_reg;
req_pcie_addr[11:0] = 12'd0;
end
end else begin
// packet larger than max read request size