shift: quickfix & SHIFT_WIDTH vergroessert
authorBernhard Urban <lewurm@gmail.com>
Sun, 9 Jan 2011 14:19:28 +0000 (15:19 +0100)
committerBernhard Urban <lewurm@gmail.com>
Sun, 9 Jan 2011 14:34:11 +0000 (15:34 +0100)
cpu/src/alu_b.vhd
cpu/src/alu_pkg.vhd

index 5702377306821cf9ce00847ee070b965e5b248ae..c14fcf4fa33b7ef677dd1b4cdd20f16d8fc6b556 100755 (executable)
@@ -130,6 +130,7 @@ begin
                result_v := xor_result;
        when SHIFT_OP =>
                result_v := shift_result;
+               addr(DATA_ADDR_WIDTH + 2) <= '0';
    when LDST_OP =>
                 res_prod := '0';
                 mem_op := '1';
index 2019e83d2cfe926cabd5295f66323a023ed1eed6..289d35c30a9712b6778a1d15afece0131048d271 100755 (executable)
@@ -33,7 +33,7 @@ package alu_pkg is
                
        end record alu_result_rec;
        
-       constant SHIFT_WIDTH : integer := 4; --log2c(gp_register_t'length);
+       constant SHIFT_WIDTH : integer := 5; --log2c(gp_register_t'length);
        
        constant COND_ZERO : condition_t := "0001";
        constant COND_NZERO : condition_t := "0000";