mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 21:57:33 -04:00
[rtl] minor cleanups
This commit is contained in:
parent
2a06ef2fd7
commit
dc499e42b8
2 changed files with 4 additions and 4 deletions
|
@ -143,9 +143,9 @@ begin
|
|||
when alu_op_slt_c => res_o(XLEN-1 downto 1) <= (others => '0');
|
||||
res_o(0) <= addsub_res(addsub_res'left); -- carry/borrow
|
||||
when alu_op_movb_c => res_o <= opb;
|
||||
when alu_op_xor_c => res_o <= rs1_i xor opb; -- only rs1 is required for logic ops (opa would also contain pc)
|
||||
when alu_op_or_c => res_o <= rs1_i or opb;
|
||||
when alu_op_and_c => res_o <= rs1_i and opb;
|
||||
when alu_op_xor_c => res_o <= opb xor rs1_i;
|
||||
when alu_op_or_c => res_o <= opb or rs1_i;
|
||||
when alu_op_and_c => res_o <= opb and rs1_i;
|
||||
when others => res_o <= addsub_res(XLEN-1 downto 0); -- don't care
|
||||
end case;
|
||||
end process alu_core;
|
||||
|
|
|
@ -59,7 +59,7 @@ package neorv32_package is
|
|||
|
||||
-- Architecture Constants -----------------------------------------------------------------
|
||||
-- -------------------------------------------------------------------------------------------
|
||||
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01090004"; -- hardware version
|
||||
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01090005"; -- hardware version
|
||||
constant archid_c : natural := 19; -- official RISC-V architecture ID
|
||||
constant XLEN : natural := 32; -- native data path width, do not change!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue