mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 06:07:52 -04:00
[rtl] minor comment edits
This commit is contained in:
parent
f5bdf69d22
commit
685eb82f25
3 changed files with 7 additions and 8 deletions
|
@ -827,7 +827,7 @@ begin
|
|||
arbiter_nxt.state <= S_READ_WAIT;
|
||||
end if;
|
||||
|
||||
when S_READ_WAIT => -- wait for device read-access to complete
|
||||
when S_READ_WAIT => -- wait for read-access to complete
|
||||
-- ------------------------------------------------------------
|
||||
arbiter_nxt.rdata <= sys_rsp_i.data;
|
||||
if (sys_rsp_i.ack = '1') or (sys_rsp_i.err = '1') then
|
||||
|
@ -838,11 +838,11 @@ begin
|
|||
-- ------------------------------------------------------------
|
||||
arbiter_nxt.state <= S_WRITE;
|
||||
|
||||
when S_WRITE => -- wait operation result to device
|
||||
when S_WRITE => -- write operation result
|
||||
-- ------------------------------------------------------------
|
||||
arbiter_nxt.state <= S_WRITE_WAIT;
|
||||
|
||||
when S_WRITE_WAIT => -- wait for device write-access to complete
|
||||
when S_WRITE_WAIT => -- wait for write-access to complete
|
||||
-- ------------------------------------------------------------
|
||||
if (sys_rsp_i.ack = '1') or (sys_rsp_i.err = '1') then
|
||||
arbiter_nxt.state <= S_IDLE;
|
||||
|
|
|
@ -846,8 +846,8 @@ begin
|
|||
bus_req_o.ben <= (others => '1'); -- full-word writes only
|
||||
bus_req_o.src <= '0'; -- cache accesses are always data accesses
|
||||
bus_req_o.priv <= '0'; -- cache accesses are always "unprivileged" accesses
|
||||
bus_req_o.amo <= '0'; -- cache accesses can never be an atomic memory operation set operation
|
||||
bus_req_o.amoop <= (others => '0'); -- cache accesses can never be an atomic memory operation set operation
|
||||
bus_req_o.amo <= '0'; -- cache accesses can never be an atomic memory operation
|
||||
bus_req_o.amoop <= (others => '0'); -- cache accesses can never be an atomic memory operation
|
||||
bus_req_o.debug <= host_req_i.debug;
|
||||
if (state = S_IDLE) then
|
||||
bus_req_o.sleep <= host_req_i.sleep;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
-- -------------------------------------------------------------------------------- --
|
||||
-- The NEORV32 RISC-V Processor - https://github.com/stnolting/neorv32 --
|
||||
-- Copyright (c) NEORV32 contributors. --
|
||||
-- Copyright (c) 2020 - 2024 Stephan Nolting. All rights reserved. --
|
||||
-- Copyright (c) 2020 - 2025 Stephan Nolting. All rights reserved. --
|
||||
-- Licensed under the BSD-3-Clause license, see LICENSE for details. --
|
||||
-- SPDX-License-Identifier: BSD-3-Clause --
|
||||
-- ================================================================================ --
|
||||
|
@ -117,6 +117,7 @@ begin
|
|||
-- atomic memory access operation encoding --
|
||||
amo_encode: process(ctrl_i.ir_funct12)
|
||||
begin
|
||||
amo_cmd <= (others => '0'); -- default
|
||||
if AMO_EN then
|
||||
case ctrl_i.ir_funct12(11 downto 7) is
|
||||
when "00000" => amo_cmd <= "0001"; -- ADD
|
||||
|
@ -129,8 +130,6 @@ begin
|
|||
when "11100" => amo_cmd <= "0111"; -- MAXU
|
||||
when others => amo_cmd <= "0000"; -- SWAP
|
||||
end case;
|
||||
else
|
||||
amo_cmd <= (others => '0');
|
||||
end if;
|
||||
end process;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue