Stefan Schuermans commited on 2012-01-24 21:00:05
              Showing 2 changed files, with 29 additions and 29 deletions.
            
| ... | ... | @@ -15,9 +15,9 @@ ARCHITECTURE a_mips_core OF e_mips_core IS | 
| 15 | 15 |  | 
| 16 | 16 | SIGNAL r_instr: std_logic_vector(31 DOWNTO 0); | 
| 17 | 17 |  | 
| 18 | - SIGNAL s_src_s: std_logic_vector( 4 DOWNTO 0); | |
| 19 | - SIGNAL s_src_t: std_logic_vector( 4 DOWNTO 0); | |
| 20 | - SIGNAL s_dest: std_logic_vector( 4 DOWNTO 0); | |
| 18 | + SIGNAL s_reg_s: std_logic_vector( 4 DOWNTO 0); | |
| 19 | + SIGNAL s_reg_t: std_logic_vector( 4 DOWNTO 0); | |
| 20 | + SIGNAL s_reg_d: std_logic_vector( 4 DOWNTO 0); | |
| 21 | 21 | SIGNAL s_imm_a: std_logic_vector( 4 DOWNTO 0); | 
| 22 | 22 | SIGNAL s_imm_16: std_logic_vector(15 DOWNTO 0); | 
| 23 | 23 | SIGNAL s_imm_26: std_logic_vector(25 DOWNTO 0); | 
| ... | ... | @@ -34,9 +34,9 @@ ARCHITECTURE a_mips_core OF e_mips_core IS | 
| 34 | 34 | COMPONENT e_mips_decoder IS | 
| 35 | 35 | PORT ( | 
| 36 | 36 | i_instr: IN std_logic_vector(31 DOWNTO 0); | 
| 37 | - o_src_s: OUT std_logic_vector( 4 DOWNTO 0); | |
| 38 | - o_src_t: OUT std_logic_vector( 4 DOWNTO 0); | |
| 39 | - o_dest: OUT std_logic_vector( 4 DOWNTO 0); | |
| 37 | + o_reg_s: OUT std_logic_vector( 4 DOWNTO 0); | |
| 38 | + o_reg_t: OUT std_logic_vector( 4 DOWNTO 0); | |
| 39 | + o_reg_d: OUT std_logic_vector( 4 DOWNTO 0); | |
| 40 | 40 | o_imm_a: OUT std_logic_vector( 4 DOWNTO 0); | 
| 41 | 41 | o_imm_16: OUT std_logic_vector(15 DOWNTO 0); | 
| 42 | 42 | o_imm_26: OUT std_logic_vector(25 DOWNTO 0); | 
| ... | ... | @@ -76,9 +76,9 @@ BEGIN | 
| 76 | 76 | decoder: e_mips_decoder | 
| 77 | 77 | PORT MAP ( | 
| 78 | 78 | i_instr => r_instr, | 
| 79 | - o_src_s => s_src_s, | |
| 80 | - o_src_t => s_src_t, | |
| 81 | - o_dest => s_dest, | |
| 79 | + o_reg_s => s_reg_s, | |
| 80 | + o_reg_t => s_reg_t, | |
| 81 | + o_reg_d => s_reg_d, | |
| 82 | 82 | o_imm_a => s_imm_a, | 
| 83 | 83 | o_imm_16 => s_imm_16, | 
| 84 | 84 | o_imm_26 => s_imm_26, | 
| ... | ... | @@ -93,11 +93,11 @@ BEGIN | 
| 93 | 93 | PORT MAP ( | 
| 94 | 94 | rst => rst, | 
| 95 | 95 | clk => clk, | 
| 96 | - i_rd_a_no => s_src_s, | |
| 96 | + i_rd_a_no => s_reg_s, | |
| 97 | 97 | o_rd_a_data => s_op1, | 
| 98 | - i_rd_b_no => s_src_t, | |
| 98 | + i_rd_b_no => s_reg_t, | |
| 99 | 99 | o_rd_b_data => s_op2, | 
| 100 | - i_wr_no => s_dest, | |
| 100 | + i_wr_no => s_reg_d, | |
| 101 | 101 | i_wr_data => s_res, | 
| 102 | 102 | i_wr_en => '1' | 
| 103 | 103 | ); | 
| ... | ... | @@ -6,9 +6,9 @@ USE work.mips_types.all; | 
| 6 | 6 | ENTITY e_mips_decoder IS | 
| 7 | 7 | PORT ( | 
| 8 | 8 | i_instr: IN std_logic_vector(31 DOWNTO 0); | 
| 9 | - o_src_s: OUT std_logic_vector( 4 DOWNTO 0); | |
| 10 | - o_src_t: OUT std_logic_vector( 4 DOWNTO 0); | |
| 11 | - o_dest: OUT std_logic_vector( 4 DOWNTO 0); | |
| 9 | + o_reg_s: OUT std_logic_vector( 4 DOWNTO 0); | |
| 10 | + o_reg_t: OUT std_logic_vector( 4 DOWNTO 0); | |
| 11 | + o_reg_d: OUT std_logic_vector( 4 DOWNTO 0); | |
| 12 | 12 | o_imm_a: OUT std_logic_vector( 4 DOWNTO 0); | 
| 13 | 13 | o_imm_16: OUT std_logic_vector(15 DOWNTO 0); | 
| 14 | 14 | o_imm_26: OUT std_logic_vector(25 DOWNTO 0); | 
| ... | ... | @@ -42,31 +42,31 @@ BEGIN | 
| 42 | 42 | END CASE; | 
| 43 | 43 | END PROCESS p_enc_type; | 
| 44 | 44 |  | 
| 45 | - p_src_s: PROCESS(i_instr, s_enc_type) | |
| 45 | + p_reg_s: PROCESS(i_instr, s_enc_type) | |
| 46 | 46 | BEGIN | 
| 47 | 47 | CASE s_enc_type IS | 
| 48 | - WHEN enc_reg => o_src_s <= i_instr(25 DOWNTO 21); | |
| 49 | - WHEN enc_imm => o_src_s <= i_instr(25 DOWNTO 21); | |
| 50 | - WHEN OTHERS => o_src_s <= "00000"; | |
| 48 | + WHEN enc_reg => o_reg_s <= i_instr(25 DOWNTO 21); | |
| 49 | + WHEN enc_imm => o_reg_s <= i_instr(25 DOWNTO 21); | |
| 50 | + WHEN OTHERS => o_reg_s <= "00000"; | |
| 51 | 51 | END CASE; | 
| 52 | - END PROCESS p_src_s; | |
| 52 | + END PROCESS p_reg_s; | |
| 53 | 53 |  | 
| 54 | - p_src_t: PROCESS(i_instr, s_enc_type) | |
| 54 | + p_reg_t: PROCESS(i_instr, s_enc_type) | |
| 55 | 55 | BEGIN | 
| 56 | 56 | CASE s_enc_type IS | 
| 57 | - WHEN enc_reg => o_src_t <= i_instr(20 DOWNTO 16); | |
| 58 | - WHEN enc_imm => o_src_t <= i_instr(20 DOWNTO 16); | |
| 59 | - WHEN OTHERS => o_src_t <= "00000"; | |
| 57 | + WHEN enc_reg => o_reg_t <= i_instr(20 DOWNTO 16); | |
| 58 | + WHEN enc_imm => o_reg_t <= i_instr(20 DOWNTO 16); | |
| 59 | + WHEN OTHERS => o_reg_t <= "00000"; | |
| 60 | 60 | END CASE; | 
| 61 | - END PROCESS p_src_t; | |
| 61 | + END PROCESS p_reg_t; | |
| 62 | 62 |  | 
| 63 | - p_dest: PROCESS(i_instr, s_enc_type) | |
| 63 | + p_reg_d: PROCESS(i_instr, s_enc_type) | |
| 64 | 64 | BEGIN | 
| 65 | 65 | CASE s_enc_type IS | 
| 66 | - WHEN enc_reg => o_dest <= i_instr(15 DOWNTO 11); | |
| 67 | - WHEN OTHERS => o_dest <= "00000"; | |
| 66 | + WHEN enc_reg => o_reg_d <= i_instr(15 DOWNTO 11); | |
| 67 | + WHEN OTHERS => o_reg_d <= "00000"; | |
| 68 | 68 | END CASE; | 
| 69 | - END PROCESS p_dest; | |
| 69 | + END PROCESS p_reg_d; | |
| 70 | 70 |  | 
| 71 | 71 | p_imm_a: PROCESS(i_instr, s_enc_type) | 
| 72 | 72 | BEGIN | 
| 73 | 73 |