decode => demux

This commit is contained in:
Blaise Tine 2024-10-23 13:06:45 -07:00
parent 7ab58111d8
commit e7d09feb4a
6 changed files with 14 additions and 14 deletions

View file

@ -614,10 +614,10 @@ module VX_cache_bank #(
`UNUSED_VAR (byteen_st1)
end else begin : g_wt
wire [LINE_SIZE-1:0] line_byteen;
VX_decoder #(
VX_demux #(
.N (`CS_WORD_SEL_BITS),
.M (WORD_SIZE)
) byteen_dec (
) byteen_demux (
.sel_in (word_idx_st1),
.data_in (byteen_st1),
.data_out (line_byteen)

View file

@ -65,7 +65,7 @@ module VX_cyclic_arbiter #(
.valid_out (grant_valid)
);
VX_decoder #(
VX_demux #(
.N (LOG_NUM_REQS),
.D (NUM_REQS)
) grant_decoder (

View file

@ -17,7 +17,7 @@
// Adapted from BaseJump STL: http://bjump.org/data_out.html
`TRACING_OFF
module VX_decoder #(
module VX_demux #(
parameter N = 0,
parameter M = 1,
parameter MODEL = 0,

View file

@ -100,19 +100,19 @@ module VX_mem_adapter #(
assign mem_req_addr_out_w = mem_req_addr_in_qual;
end
VX_decoder #(
VX_demux #(
.N (D),
.M (SRC_DATA_WIDTH/8)
) req_be_dec (
) req_be_demux (
.sel_in (req_idx),
.data_in (mem_req_byteen_in),
.data_out (mem_req_byteen_out_w)
);
VX_decoder #(
VX_demux #(
.N (D),
.M (SRC_DATA_WIDTH)
) req_data_dec (
) req_data_demux (
.sel_in (req_idx),
.data_in (mem_req_data_in),
.data_out (mem_req_data_out_w)

View file

@ -480,12 +480,12 @@ module VX_rr_arbiter #(
end
end
VX_decoder #(
VX_demux #(
.N (LOG_NUM_REQS),
.D (NUM_REQS)
) grant_decoder (
.sel_in (grant_index),
.data_in (grant_valid),
.data_in (1'b1),
.data_out (grant_onehot)
);

View file

@ -64,10 +64,10 @@ module VX_stream_xbar #(
);
for (genvar i = 0; i < NUM_INPUTS; ++i) begin : g_sel_in_decoders
VX_decoder #(
VX_demux #(
.N (OUT_WIDTH),
.D (NUM_OUTPUTS)
) sel_in_decoder (
) sel_in_demux (
.sel_in (sel_in[i]),
.data_in (valid_in[i]),
.data_out (per_output_valid_in[i])
@ -137,10 +137,10 @@ module VX_stream_xbar #(
wire [NUM_OUTPUTS-1:0] valid_out_w, ready_out_w;
wire [NUM_OUTPUTS-1:0][DATAW-1:0] data_out_w;
VX_decoder #(
VX_demux #(
.N (OUT_WIDTH),
.D (NUM_OUTPUTS)
) sel_in_decoder (
) sel_in_demux (
.sel_in (sel_in[0]),
.data_in (valid_in[0]),
.data_out (valid_out_w)