From d4384a03e86fd5af0a13b956cb85c2c6929fb196 Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Sun, 9 Jan 2011 15:19:28 +0100 Subject: [PATCH] shift: quickfix & SHIFT_WIDTH vergroessert --- cpu/src/alu_b.vhd | 1 + cpu/src/alu_pkg.vhd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/src/alu_b.vhd b/cpu/src/alu_b.vhd index 5702377..c14fcf4 100755 --- a/cpu/src/alu_b.vhd +++ b/cpu/src/alu_b.vhd @@ -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'; diff --git a/cpu/src/alu_pkg.vhd b/cpu/src/alu_pkg.vhd index 2019e83..289d35c 100755 --- a/cpu/src/alu_pkg.vhd +++ b/cpu/src/alu_pkg.vhd @@ -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"; -- 2.25.1