-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathstream_join.sv
More file actions
41 lines (37 loc) · 1.66 KB
/
stream_join.sv
File metadata and controls
41 lines (37 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2020 ETH Zurich and University of Bologna.
// Copyright and related rights are licensed under the Solderpad Hardware
// License, Version 0.51 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://solderpad.org/licenses/SHL-0.51. Unless required by applicable law
// or agreed to in writing, software, hardware and materials distributed under
// this License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
// Authors:
// - Andreas Kurth <akurth@iis.ee.ethz.ch>
/// Stream join: Joins a parametrizable number of input streams (i.e., valid-ready handshaking with
/// dependency rules as in AXI4) to a single output stream. The output handshake happens only once
/// all inputs are valid. The data channel flows outside of this module.
module stream_join #(
/// Number of input streams
parameter int unsigned N_INP = 32'd0 // Synopsys DC requires a default value for parameters.
) (
/// Input streams valid handshakes
input logic [N_INP-1:0] inp_valid_i,
/// Input streams ready handshakes
output logic [N_INP-1:0] inp_ready_o,
/// Output stream valid handshake
output logic oup_valid_o,
/// Output stream ready handshake
input logic oup_ready_i
);
stream_join_dynamic #(
.N_INP(N_INP)
) i_stream_join_dynamic (
.inp_valid_i(inp_valid_i),
.inp_ready_o(inp_ready_o),
.sel_i ({N_INP{1'b1}}),
.oup_valid_o(oup_valid_o),
.oup_ready_i(oup_ready_i)
);
endmodule