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:
parent
d97ac3105f
commit
aee1431e74
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user