Skip to content

Commit

Permalink
🐛 [control] fix CTZ decoding
Browse files Browse the repository at this point in the history
bug introduced in v1.10.3.6
  • Loading branch information
stnolting committed Sep 14, 2024
1 parent a1f3c5f commit 4de6a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rtl/core/neorv32_cpu_control.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ begin
-- BITMANIP instruction --
if CPU_EXTENSION_RISCV_B then -- implemented at all?
-- register-immediate operation --
if ((f7_v = "0110000") and (f3_v = "001") and ((f5_v = "00000") or (f5_v = "00000") or (f5_v = "00010") or (f5_v = "00100") or (f5_v = "00101"))) or -- CLZ, CTZ, CPOP, SEXT.[B/H]
if ((f7_v = "0110000") and (f3_v = "001") and ((f5_v = "00000") or (f5_v = "00001") or (f5_v = "00010") or (f5_v = "00100") or (f5_v = "00101"))) or -- CLZ, CTZ, CPOP, SEXT.[B/H]
((f7_v = "0110000") and (f3_v = "101")) or -- RORI
((f7_v = "0010100") and (f3_v = "101") and (f5_v = "00111")) or -- ORCB
((f7_v = "0100100") and (f3_v(1 downto 0) = "01")) or -- BCLRI / BEXTI
Expand Down
2 changes: 1 addition & 1 deletion rtl/core/neorv32_package.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package neorv32_package is

-- Architecture Constants -----------------------------------------------------------------
-- -------------------------------------------------------------------------------------------
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01100307"; -- hardware version
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01100308"; -- hardware version
constant archid_c : natural := 19; -- official RISC-V architecture ID
constant XLEN : natural := 32; -- native data path width

Expand Down

0 comments on commit 4de6a5f

Please sign in to comment.