File tree 2 files changed +14
-12
lines changed
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
17
17
has a single bit, and both values were correctly handled in synthesis. However, when starting
18
18
simulation, the signal has an undefined value, and ModelSim threw warnings that this violated the
19
19
` unique ` condition.
20
+ - ` axi_demux ` : Move ` typedef ` outside ` generate ` for compatibility with VCS.
20
21
- ` axi_id_prepend ` :
21
22
- Fix text of some assertion messages.
22
23
- Fix case of prepending a single-bit ID.
Original file line number Diff line number Diff line change @@ -51,24 +51,25 @@ module axi_demux #(
51
51
52
52
localparam int unsigned IdCounterWidth = $clog2 (MaxTrans);
53
53
54
+ // --------------------------------------
55
+ // Typedefs for the FIFOs / Queues
56
+ // --------------------------------------
57
+ typedef logic [AxiIdWidth- 1 : 0 ] axi_id_t ;
58
+ typedef struct packed {
59
+ aw_chan_t aw_chan;
60
+ select_t aw_select;
61
+ } aw_chan_select_t ;
62
+ typedef struct packed {
63
+ ar_chan_t ar_chan;
64
+ select_t ar_select;
65
+ } ar_chan_select_t ;
66
+
54
67
// pass through if only one master port
55
68
if (NoMstPorts == 32'h1 ) begin : gen_no_demux
56
69
assign mst_reqs_o[0 ] = slv_req_i;
57
70
assign slv_resp_o = mst_resps_i;
58
71
// other non degenerate cases
59
72
end else begin : gen_demux
60
- // --------------------------------------
61
- // Typedefs for the Fifo's / Queues
62
- // --------------------------------------
63
- typedef logic [AxiIdWidth- 1 : 0 ] axi_id_t ;
64
- typedef struct packed {
65
- aw_chan_t aw_chan;
66
- select_t aw_select;
67
- } aw_chan_select_t ;
68
- typedef struct packed {
69
- ar_chan_t ar_chan;
70
- select_t ar_select;
71
- } ar_chan_select_t ;
72
73
73
74
// --------------------------------------
74
75
// --------------------------------------
You can’t perform that action at this time.
0 commit comments