Skip to content

Commit

Permalink
axi_dw_downsizer: Remove forward reference
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Zulberti <[email protected]>
  • Loading branch information
LucaZulberti authored and andreaskurth committed Feb 1, 2021
1 parent 34be2a0 commit 3804f25
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/axi_dw_downsizer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,20 @@ module axi_dw_downsizer #(
logic injected_aw ;
} r_req_t;

// Write-related type, but w_req_q is referenced from Read logic
typedef struct packed {
aw_chan_t aw ;
logic aw_valid ;
logic aw_throw_error ;
burst_len_t burst_len ;
axi_pkg::len_t orig_aw_len ;
axi_pkg::burst_t orig_aw_burst;
axi_pkg::resp_t burst_resp ;
axi_pkg::size_t orig_aw_size ;
} w_req_t;

w_req_t w_req_d, w_req_q;

// Decide which downsizer will handle the incoming AXI transaction
logic [AxiMaxReads-1:0] idle_read_downsizer;
tran_id_t idx_ar_downsizer;
Expand Down Expand Up @@ -614,19 +628,7 @@ module axi_dw_downsizer #(
W_SPLIT_INCR_DOWNSIZE
} w_state_e;

typedef struct packed {
aw_chan_t aw ;
logic aw_valid ;
logic aw_throw_error ;
burst_len_t burst_len ;
axi_pkg::len_t orig_aw_len ;
axi_pkg::burst_t orig_aw_burst;
axi_pkg::resp_t burst_resp ;
axi_pkg::size_t orig_aw_size ;
} w_req_t;

w_state_e w_state_d, w_state_q;
w_req_t w_req_d, w_req_q;

// This FIFO holds the number of bursts generated by each write transactions handled by this downsizer.
// This is used to forward only the correct B beats to the slave.
Expand Down

0 comments on commit 3804f25

Please sign in to comment.