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

Subversion Repositories t6507lp

[/] [t6507lp/] [trunk/] [rtl/] [verilog/] [t6507lp_fsm.v] - Diff between revs 77 and 78

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

Rev 77 Rev 78
Line 161... Line 161...
                                                temp_addr[7:0] <= data_in;
                                                temp_addr[7:0] <= data_in;
                                        end
                                        end
                                        else if (zero_page) begin
                                        else if (zero_page) begin
                                                pc <= next_pc;
                                                pc <= next_pc;
                                                address <= {{5{1'b0}},data_in};
                                                address <= {{5{1'b0}},data_in};
 
                                                temp_addr <= {{5{1'b0}},data_in};
 
 
                                                if (write) begin
                                                if (write) begin
                                                        control <= MEM_WRITE;
                                                        control <= MEM_WRITE;
 
                                                        data_out <= alu_result;
                                                end
                                                end
                                        end
                                        end
                                end
                                end
                                FETCH_HIGH: begin
                                FETCH_HIGH: begin
                                        if (jump) begin
                                        if (jump) begin
Line 277... Line 280...
                                        end
                                        end
                                end
                                end
                                else begin // at least the absolute address mode falls here
                                else begin // at least the absolute address mode falls here
                                        next_state = FETCH_HIGH;
                                        next_state = FETCH_HIGH;
                                end
                                end
 
 
 
                                if (write) begin
 
                                        alu_opcode = ir;
 
                                        alu_enable = 1'b1;
 
                                        alu_a = 8'hzz;
 
                                end
 
 
 
 
                        end
                        end
                        FETCH_HIGH: begin
                        FETCH_HIGH: begin
                                if (jump) begin
                                if (jump) begin
                                        next_state = FETCH_OP;
                                        next_state = FETCH_OP;
                                end
                                end

powered by: WebSVN 2.1.0

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