mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Timing optimization
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
b1b82a3f2b
commit
1dfdd8b0e3
@ -341,13 +341,16 @@ always @* begin
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
for (port = 0; port < PORTS; port = port + 1) begin
|
for (port = 0; port < PORTS; port = port + 1) begin
|
||||||
if (port_seg_valid[cur_port][0] && !pause[cur_port] && !frame_cyc) begin
|
if (!frame_cyc) begin
|
||||||
// select port, set frame
|
// select port
|
||||||
frame_cyc = 1;
|
|
||||||
port_cyc = cur_port;
|
port_cyc = cur_port;
|
||||||
seg_offset_cyc = port_seg_offset_cyc[cur_port];
|
seg_offset_cyc = port_seg_offset_cyc[cur_port];
|
||||||
seg_count_cyc = port_seg_count_cyc[cur_port];
|
seg_count_cyc = port_seg_count_cyc[cur_port];
|
||||||
sel_tlp_seq_valid_cyc[OUT_TLP_SEG_COUNT*cur_port+seg] = 1'b1;
|
if (port_seg_valid[cur_port][0] && !pause[cur_port]) begin
|
||||||
|
// set frame
|
||||||
|
frame_cyc = 1;
|
||||||
|
sel_tlp_seq_valid_cyc[OUT_TLP_SEG_COUNT*cur_port+seg] = 1'b1;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
// next port
|
// next port
|
||||||
if (ARB_LSB_HIGH_PRIORITY) begin
|
if (ARB_LSB_HIGH_PRIORITY) begin
|
||||||
|
@ -272,12 +272,15 @@ always @* begin
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
for (port = 0; port < PORTS; port = port + 1) begin
|
for (port = 0; port < PORTS; port = port + 1) begin
|
||||||
if (port_seg_valid[cur_port][0] && !pause[cur_port] && !frame_cyc) begin
|
if (!frame_cyc) begin
|
||||||
// select port, set frame
|
// select port
|
||||||
frame_cyc = 1;
|
|
||||||
port_cyc = cur_port;
|
port_cyc = cur_port;
|
||||||
seg_offset_cyc = port_seg_offset_next[cur_port];
|
seg_offset_cyc = port_seg_offset_next[cur_port];
|
||||||
sel_tlp_seq_valid_cyc[TLP_SEG_COUNT*cur_port+seg] = 1'b1;
|
if (port_seg_valid[cur_port][0] && !pause[cur_port]) begin
|
||||||
|
// set frame
|
||||||
|
frame_cyc = 1;
|
||||||
|
sel_tlp_seq_valid_cyc[TLP_SEG_COUNT*cur_port+seg] = 1'b1;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
// next port
|
// next port
|
||||||
if (ARB_LSB_HIGH_PRIORITY) begin
|
if (ARB_LSB_HIGH_PRIORITY) begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user