fmax incr
authorStefan Rebernig <stefan.rebernig@gmail.com>
Tue, 14 Dec 2010 11:56:06 +0000 (12:56 +0100)
committerStefan Rebernig <stefan.rebernig@gmail.com>
Tue, 14 Dec 2010 11:56:06 +0000 (12:56 +0100)
cpu/src/alu_b.vhd
cpu/src/core_top.vhd

index c0bfbb2b58e36f1dd47d09d10be4eda5ca809ea9..f0eda881851fd219ba4bf32134051457331213c5 100755 (executable)
@@ -127,7 +127,8 @@ begin
         when LDST_OP =>\r
                 res_prod := '0';\r
                 mem_op := '1';\r
-                               right_o <= displacement;\r
+               --right_o <= displacement;\r
+               addr <= std_logic_vector(unsigned(left_operand)+unsigned(displacement));\r
                 if op_detail(IMM_OPT) = '1' then\r
                         result_v.result := right_operand;\r
                         res_prod := '1';\r
index 7a85f27d6954d529f5d4b73069001cf9139571a2..1002989d03e2fcbca282ee82d7e221219f24bc14 100644 (file)
@@ -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;