Skip to content

Commit

Permalink
Add component inf 'write' signal
Browse files Browse the repository at this point in the history
  • Loading branch information
calebofearth committed May 31, 2024
1 parent 5f5b0ef commit 65dd299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/axi/rtl/axi_sub.sv
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module axi_sub import axi_pkg::*; #(
//COMPONENT INF
output logic dv,
output logic [AW-1:0] addr, // Byte address
output logic write,
output logic [UW-1:0] user,
output logic [IW-1:0] id,
output logic [DW-1:0] wdata, // Requires: Component dwidth == AXI dwidth
Expand Down Expand Up @@ -191,6 +192,7 @@ module axi_sub import axi_pkg::*; #(
//COMPONENT INF
.dv (dv ),
.addr (addr ),
.write (write ),
.user (user ),
.id (id ),
.wdata (wdata ),
Expand Down
2 changes: 2 additions & 0 deletions src/axi/rtl/axi_sub_arb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module axi_sub_arb import axi_pkg::*; #(
//COMPONENT INF
output logic dv,
output logic [AW-1:0] addr, // Byte address
output logic write,
output logic [UW-1:0] user,
output logic [IW-1:0] id,
output logic [DW-1:0] wdata, // Requires: Component dwidth == AXI dwidth
Expand Down Expand Up @@ -118,6 +119,7 @@ module axi_sub_arb import axi_pkg::*; #(
always_comb begin
dv = r_dv || w_dv;
addr = r_win ? r_addr : w_addr;
write = r_win ? 0 : 1;
user = r_win ? r_user : w_user;
id = r_win ? r_id : w_id ;
last = r_win ? r_last : w_last;
Expand Down

0 comments on commit 65dd299

Please sign in to comment.