From e015478bf1add42f6c2e49652360b3fae08d94f5 Mon Sep 17 00:00:00 2001 From: Stefan Rebernig Date: Tue, 14 Dec 2010 12:56:06 +0100 Subject: [PATCH] fmax incr --- cpu/src/alu_b.vhd | 3 ++- cpu/src/core_top.vhd | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cpu/src/alu_b.vhd b/cpu/src/alu_b.vhd index c0bfbb2..f0eda88 100755 --- a/cpu/src/alu_b.vhd +++ b/cpu/src/alu_b.vhd @@ -127,7 +127,8 @@ begin when LDST_OP => res_prod := '0'; mem_op := '1'; - right_o <= displacement; + --right_o <= displacement; + addr <= std_logic_vector(unsigned(left_operand)+unsigned(displacement)); if op_detail(IMM_OPT) = '1' then result_v.result := right_operand; res_prod := '1'; diff --git a/cpu/src/core_top.vhd b/cpu/src/core_top.vhd index 7a85f27..1002989 100644 --- a/cpu/src/core_top.vhd +++ b/cpu/src/core_top.vhd @@ -12,9 +12,9 @@ entity core_top is --System input pins sys_clk : in std_logic; sys_res : in std_logic; - result : out gp_register_t; - jump_result : out instruction_addr_t; - reg_wr_data : out gp_register_t +-- result : out gp_register_t; + jump_result : out instruction_addr_t +-- reg_wr_data : out gp_register_t ); @@ -132,10 +132,10 @@ begin --end process; - result <= result_pin; +-- result <= result_pin; nop_pin <= (alu_jump_bit_pin); -- xor brpr_pin); - jump_result <= jump_result_pin; + jump_result <= prog_cnt_pin; --jump_result_pin; - reg_wr_data <= reg_wr_data_pin; +-- reg_wr_data <= reg_wr_data_pin; end behav; -- 2.25.1