mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
merged changes in axis
This commit is contained in:
commit
f32d7d0dec
@ -225,7 +225,7 @@ generate
|
|||||||
|
|
||||||
// forwarding
|
// forwarding
|
||||||
assign int_axis_tvalid[m*M_COUNT +: M_COUNT] = (int_s_axis_tvalid[m] && select_valid_reg && !drop_reg) << select_reg;
|
assign int_axis_tvalid[m*M_COUNT +: M_COUNT] = (int_s_axis_tvalid[m] && select_valid_reg && !drop_reg) << select_reg;
|
||||||
assign int_s_axis_tready[m] = int_axis_tready[select_reg*M_COUNT+m] || drop_reg;
|
assign int_s_axis_tready[m] = int_axis_tready[select_reg*S_COUNT+m] || drop_reg;
|
||||||
|
|
||||||
// S side register
|
// S side register
|
||||||
axis_register #(
|
axis_register #(
|
||||||
@ -293,7 +293,7 @@ generate
|
|||||||
// mux
|
// mux
|
||||||
wire [DATA_WIDTH-1:0] s_axis_tdata_mux = int_s_axis_tdata[grant_encoded*DATA_WIDTH +: DATA_WIDTH];
|
wire [DATA_WIDTH-1:0] s_axis_tdata_mux = int_s_axis_tdata[grant_encoded*DATA_WIDTH +: DATA_WIDTH];
|
||||||
wire [KEEP_WIDTH-1:0] s_axis_tkeep_mux = int_s_axis_tkeep[grant_encoded*KEEP_WIDTH +: KEEP_WIDTH];
|
wire [KEEP_WIDTH-1:0] s_axis_tkeep_mux = int_s_axis_tkeep[grant_encoded*KEEP_WIDTH +: KEEP_WIDTH];
|
||||||
wire s_axis_tvalid_mux = int_axis_tvalid[grant_encoded*S_COUNT+n] && grant_valid;
|
wire s_axis_tvalid_mux = int_axis_tvalid[grant_encoded*M_COUNT+n] && grant_valid;
|
||||||
wire s_axis_tready_mux;
|
wire s_axis_tready_mux;
|
||||||
wire s_axis_tlast_mux = int_s_axis_tlast[grant_encoded];
|
wire s_axis_tlast_mux = int_s_axis_tlast[grant_encoded];
|
||||||
wire [ID_WIDTH-1:0] s_axis_tid_mux = int_s_axis_tid[grant_encoded*ID_WIDTH +: ID_WIDTH];
|
wire [ID_WIDTH-1:0] s_axis_tid_mux = int_s_axis_tid[grant_encoded*ID_WIDTH +: ID_WIDTH];
|
||||||
|
@ -106,6 +106,8 @@ initial begin
|
|||||||
end
|
end
|
||||||
|
|
||||||
axis_switch #(
|
axis_switch #(
|
||||||
|
.M_COUNT(M_COUNT),
|
||||||
|
.S_COUNT(S_COUNT),
|
||||||
.DATA_WIDTH(DATA_WIDTH),
|
.DATA_WIDTH(DATA_WIDTH),
|
||||||
.KEEP_ENABLE(KEEP_ENABLE),
|
.KEEP_ENABLE(KEEP_ENABLE),
|
||||||
.KEEP_WIDTH(KEEP_WIDTH),
|
.KEEP_WIDTH(KEEP_WIDTH),
|
||||||
|
@ -106,6 +106,8 @@ initial begin
|
|||||||
end
|
end
|
||||||
|
|
||||||
axis_switch #(
|
axis_switch #(
|
||||||
|
.M_COUNT(M_COUNT),
|
||||||
|
.S_COUNT(S_COUNT),
|
||||||
.DATA_WIDTH(DATA_WIDTH),
|
.DATA_WIDTH(DATA_WIDTH),
|
||||||
.KEEP_ENABLE(KEEP_ENABLE),
|
.KEEP_ENABLE(KEEP_ENABLE),
|
||||||
.KEEP_WIDTH(KEEP_WIDTH),
|
.KEEP_WIDTH(KEEP_WIDTH),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user