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

Subversion Repositories rtf65002

[/] [rtf65002/] [trunk/] [rtl/] [verilog/] [byte_jsl.v] - Diff between revs 5 and 10

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

Rev 5 Rev 10
Line 1... Line 1...
 
// ============================================================================
 
//        __
 
//   \\__/ o\    (C) 2013  Robert Finch, Stratford
 
//    \  __ /    All rights reserved.
 
//     \/_//     robfinch<remove>@opencores.org
 
//       ||
 
//
 
// This source file is free software: you can redistribute it and/or modify 
 
// it under the terms of the GNU Lesser General Public License as published 
 
// by the Free Software Foundation, either version 3 of the License, or     
 
// (at your option) any later version.                                      
 
//                                                                          
 
// This source file is distributed in the hope that it will be useful,      
 
// but WITHOUT ANY WARRANTY; without even the implied warranty of           
 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            
 
// GNU General Public License for more details.                             
 
//                                                                          
 
// You should have received a copy of the GNU General Public License        
 
// along with this program.  If not, see <http://www.gnu.org/licenses/>.    
 
//                                                                          
 
// ============================================================================
 
//
BYTE_JSL1:
BYTE_JSL1:
        if (ack_i) begin
        if (ack_i) begin
 
                state <= BYTE_JSL2;
 
                retstate <= BYTE_JSL2;
                cyc_o <= 1'b0;
                cyc_o <= 1'b0;
                stb_o <= 1'b0;
                stb_o <= 1'b0;
                we_o <= 1'b0;
                we_o <= 1'b0;
                sel_o <= 4'h0;
                sel_o <= 4'h0;
                if (dhit) begin
                if (dhit) begin
                        wrsel <= sel_o;
                        wrsel <= sel_o;
                        wr <= 1'b1;
                        wr <= 1'b1;
                end
                end
                state <= BYTE_JSL2;
                else if (write_allocate) begin
 
                        state <= WAIT_DHIT;
 
                        dmiss <= `TRUE;
 
                end
        end
        end
BYTE_JSL2:
BYTE_JSL2:
        begin
        begin
                radr <= {24'h1,sp[7:2]};
                radr <= {24'h1,sp[7:2]};
                wadr <= {24'h1,sp[7:2]};
                wadr <= {24'h1,sp[7:2]};
Line 31... Line 58...
                sp <= sp_dec;
                sp <= sp_dec;
                state <= BYTE_JSL3;
                state <= BYTE_JSL3;
        end
        end
BYTE_JSL3:
BYTE_JSL3:
        if (ack_i) begin
        if (ack_i) begin
 
                state <= BYTE_JSL4;
 
                retstate <= BYTE_JSL4;
                cyc_o <= 1'b0;
                cyc_o <= 1'b0;
                stb_o <= 1'b0;
                stb_o <= 1'b0;
                we_o <= 1'b0;
                we_o <= 1'b0;
                sel_o <= 4'h0;
                sel_o <= 4'h0;
                if (dhit) begin
                if (dhit) begin
                        wrsel <= sel_o;
                        wrsel <= sel_o;
                        wr <= 1'b1;
                        wr <= 1'b1;
                end
                end
                state <= BYTE_JSL4;
                else if (write_allocate) begin
 
                        state <= WAIT_DHIT;
 
                        dmiss <= `TRUE;
 
                end
        end
        end
BYTE_JSL4:
BYTE_JSL4:
        begin
        begin
                radr <= {24'h1,sp[7:2]};
                radr <= {24'h1,sp[7:2]};
                wadr <= {24'h1,sp[7:2]};
                wadr <= {24'h1,sp[7:2]};
Line 64... Line 96...
                sp <= sp_dec;
                sp <= sp_dec;
                state <= BYTE_JSL5;
                state <= BYTE_JSL5;
        end
        end
BYTE_JSL5:
BYTE_JSL5:
        if (ack_i) begin
        if (ack_i) begin
 
                state <= BYTE_JSL6;
 
                retstate <= BYTE_JSL6;
                cyc_o <= 1'b0;
                cyc_o <= 1'b0;
                stb_o <= 1'b0;
                stb_o <= 1'b0;
                we_o <= 1'b0;
                we_o <= 1'b0;
                sel_o <= 4'h0;
                sel_o <= 4'h0;
                if (dhit) begin
                if (dhit) begin
                        wrsel <= sel_o;
                        wrsel <= sel_o;
                        wr <= 1'b1;
                        wr <= 1'b1;
                end
                end
                state <= BYTE_JSL6;
                else if (write_allocate) begin
 
                        state <= WAIT_DHIT;
 
                        dmiss <= `TRUE;
 
                end
        end
        end
BYTE_JSL6:
BYTE_JSL6:
        begin
        begin
                radr <= {24'h1,sp[7:2]};
                radr <= {24'h1,sp[7:2]};
                wadr <= {24'h1,sp[7:2]};
                wadr <= {24'h1,sp[7:2]};
Line 97... Line 134...
                sp <= sp_dec;
                sp <= sp_dec;
                state <= BYTE_JSL7;
                state <= BYTE_JSL7;
        end
        end
BYTE_JSL7:
BYTE_JSL7:
        if (ack_i) begin
        if (ack_i) begin
 
                state <= IFETCH;
 
                retstate <= IFETCH;
                cyc_o <= 1'b0;
                cyc_o <= 1'b0;
                stb_o <= 1'b0;
                stb_o <= 1'b0;
                we_o <= 1'b0;
                we_o <= 1'b0;
                sel_o <= 4'h0;
                sel_o <= 4'h0;
                if (dhit) begin
                if (dhit) begin
                        wrsel <= sel_o;
                        wrsel <= sel_o;
                        wr <= 1'b1;
                        wr <= 1'b1;
                end
                end
 
                else if (write_allocate) begin
 
                        state <= WAIT_DHIT;
 
                        dmiss <= `TRUE;
 
                end
                pc <= ir[39:8];
                pc <= ir[39:8];
                state <= IFETCH;
 
        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.