From: Bernhard Urban Date: Sun, 9 Jan 2011 14:19:28 +0000 (+0100) Subject: shift: quickfix & SHIFT_WIDTH vergroessert X-Git-Tag: bootrom_v1~30 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=calu.git;a=commitdiff_plain;h=d4384a03e86fd5af0a13b956cb85c2c6929fb196 shift: quickfix & SHIFT_WIDTH vergroessert --- 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";