Skip to content

Commit c54f106

Browse files
committed
[rtl] minor code edit
1 parent c22364a commit c54f106

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

rtl/core/neorv32_intercon.vhd

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ entity neorv32_bus_switch is
2525
port (
2626
clk_i : in std_ulogic; -- global clock, rising edge
2727
rstn_i : in std_ulogic; -- global reset, low-active, async
28-
a_lock_i : in std_ulogic; -- exclusive access for port A
29-
a_req_i : in bus_req_t; -- host port A: request bus (PRIORITIZED)
30-
a_rsp_o : out bus_rsp_t; -- host port A: response bus
31-
b_req_i : in bus_req_t; -- host port B: request bus
32-
b_rsp_o : out bus_rsp_t; -- host port B: response bus
28+
a_lock_i : in std_ulogic; -- exclusive access for port A while set
29+
a_req_i : in bus_req_t; -- host port A request bus (PRIORITIZED)
30+
a_rsp_o : out bus_rsp_t; -- host port A response bus
31+
b_req_i : in bus_req_t; -- host port B request bus
32+
b_rsp_o : out bus_rsp_t; -- host port B response bus
3333
x_req_o : out bus_req_t; -- device port request bus
3434
x_rsp_i : in bus_rsp_t -- device port response bus
3535
);
@@ -121,9 +121,9 @@ begin
121121
a_req_i.data when PORT_B_READ_ONLY else
122122
a_req_i.data when (arbiter.sel = '0') else b_req_i.data;
123123

124-
x_req_o.ben <= b_req_i.ben when PORT_A_READ_ONLY else
125-
a_req_i.ben when PORT_B_READ_ONLY else
126-
a_req_i.ben when (arbiter.sel = '0') else b_req_i.ben;
124+
x_req_o.ben <= b_req_i.ben when PORT_A_READ_ONLY else
125+
a_req_i.ben when PORT_B_READ_ONLY else
126+
a_req_i.ben when (arbiter.sel = '0') else b_req_i.ben;
127127

128128
x_req_o.stb <= arbiter.stb;
129129

@@ -276,7 +276,7 @@ begin
276276
port_sel(4) <= '1' when E_ENABLE and (req_i.addr(31 downto index_size_f(E_SIZE)) = E_BASE(31 downto index_size_f(E_SIZE))) else '0';
277277

278278
-- accesses to the "void" are redirected to the X port --
279-
port_sel(5) <= '1' when ((port_sel(4 downto 0) = "00000") and X_ENABLE) else '0';
279+
port_sel(5) <= '1' when X_ENABLE and (port_sel(4 downto 0) = "00000") else '0';
280280

281281

282282
-- Gateway Ports --------------------------------------------------------------------------

0 commit comments

Comments
 (0)