OpenCores
URL https://opencores.org/ocsvn/rtf65002/rtf65002/trunk

Subversion Repositories rtf65002

[/] [rtf65002/] [trunk/] [rtl/] [verilog/] [ifetch.v] - Diff between revs 35 and 36

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 35 Rev 36
Line 123... Line 123...
                if (hist_capture) begin
                if (hist_capture) begin
                        history_buf[history_ndx] <= pc;
                        history_buf[history_ndx] <= pc;
                        history_ndx <= history_ndx+7'd1;
                        history_ndx <= history_ndx+7'd1;
                end
                end
`endif
`endif
                regfile[Rt] <= res[31:0];
 
                case(Rt)
 
                4'h1:   acc <= res[31:0];
 
                4'h2:   x <= res[31:0];
 
                4'h3:   y <= res[31:0];
 
                default:        ;
 
                endcase
 
                case(ir9)
                case(ir9)
                `TAS,`TXS:      begin isp <= res[31:0]; gie <= 1'b1; end
                `TAS,`TXS:      begin isp <= res[31:0]; gie <= 1'b1; end
                `SUB_SP8,`SUB_SP16,`SUB_SP32:   isp <= res[31:0];
                `SUB_SP8,`SUB_SP16,`SUB_SP32:   isp <= res[31:0];
                `TRS:
                `TRS:
                        begin
                        begin
Line 218... Line 211...
                `CPY_IMM32,`CPY_ZPX,`CPY_ABS:   begin cf <= ~resc32; nf <= resn32; zf <= resz32; end
                `CPY_IMM32,`CPY_ZPX,`CPY_ABS:   begin cf <= ~resc32; nf <= resn32; zf <= resz32; end
                `CMP_IMM8: begin cf <= ~resc32; nf <= resn32; zf <= resz32; end
                `CMP_IMM8: begin cf <= ~resc32; nf <= resn32; zf <= resz32; end
                `TSA,`TYA,`TXA,`INA,`DEA,
                `TSA,`TYA,`TXA,`INA,`DEA,
                `LDA_IMM32,`LDA_IMM16,`LDA_IMM8,`PLA:   begin nf <= resn32; zf <= resz32; end
                `LDA_IMM32,`LDA_IMM16,`LDA_IMM8,`PLA:   begin nf <= resn32; zf <= resz32; end
                `POP:   begin nf <= resn32; zf <= resz32; end
                `POP:   begin nf <= resn32; zf <= resz32; end
 
                `TRB_ZPX,`TRB_ABS,`TSB_ZPX,`TSB_ABS:
 
                        begin zf <= resz32; end
 
                `BMT_ZPX,`BMT_ABS,`BMT_ABSX:
 
                        begin zf <= resz32; nf <= resn32; end
                endcase
                endcase
        end
        end
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.