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

Subversion Repositories rtf65002

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

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

Rev 35 Rev 36
Line 55... Line 55...
                state <= BUS_ERROR;
                state <= BUS_ERROR;
        end
        end
`endif
`endif
LOAD_MAC3:
LOAD_MAC3:
        begin
        begin
                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
 
                // Rt will be zero by the time the IFETCH stage is entered because of
                // Rt will be zero by the time the IFETCH stage is entered because of
                // the decrement below.
                // the decrement below.
                if (Rt==4'd1)
                if (Rt==4'd1)
                        state <= IFETCH;
                        state <= IFETCH;
                else begin
                else begin
Line 87... Line 80...
                wadr <= radr + y;
                wadr <= radr + y;
                if (ir9==`ST_IY) begin
                if (ir9==`ST_IY) begin
                        store_what <= `STW_A;
                        store_what <= `STW_A;
                        state <= STORE1;
                        state <= STORE1;
                end
                end
 
                else if (ir9==`LEA_IY) begin
 
                        res <= radr + y;
 
                        next_state(IFETCH);
 
                end
                else begin
                else begin
                        load_what <= `WORD_310;
                        load_what <= `WORD_310;
                        state <= LOAD_MAC1;
                        state <= LOAD_MAC1;
                end
                end
                isIY <= 1'b0;
                isIY <= 1'b0;

powered by: WebSVN 2.1.0

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