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

Subversion Repositories rtf65002

[/] [rtf65002/] [trunk/] [rtl/] [verilog/] [rts.v] - Blame information for rev 25

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 robfinch
// ============================================================================
2
//        __
3
//   \\__/ o\    (C) 2013  Robert Finch, Stratford
4
//    \  __ /    All rights reserved.
5
//     \/_//     robfinch<remove>@opencores.org
6
//       ||
7
//
8
// This source file is free software: you can redistribute it and/or modify 
9
// it under the terms of the GNU Lesser General Public License as published 
10
// by the Free Software Foundation, either version 3 of the License, or     
11
// (at your option) any later version.                                      
12
//                                                                          
13
// This source file is distributed in the hope that it will be useful,      
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of           
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            
16
// GNU General Public License for more details.                             
17
//                                                                          
18
// You should have received a copy of the GNU General Public License        
19
// along with this program.  If not, see <http://www.gnu.org/licenses/>.    
20
//                                                                          
21
// ============================================================================
22
//
23 5 robfinch
RTS1:
24
        if (unCachedData) begin
25
                cyc_o <= 1'b1;
26
                stb_o <= 1'b1;
27
                sel_o <= 4'hF;
28
                adr_o <= {radr,2'b00};
29
                state <= RTS2;
30
        end
31
        else if (dhit) begin
32
                isp <= isp_inc;
33
                pc <= rdat;
34
                state <= IFETCH;
35
        end
36
        else
37
                dmiss <= `TRUE;
38
RTS2:
39
        if (ack_i) begin
40
                cyc_o <= 1'b0;
41
                stb_o <= 1'b0;
42
                sel_o <= 4'h0;
43
                adr_o <= 34'h0;
44
                isp <= isp_inc;
45
                pc <= dat_i;
46
                state <= IFETCH;
47
        end
48 21 robfinch
        else if (err_i) begin
49
                lock_o <= 1'b0;
50
                cyc_o <= 1'b0;
51
                stb_o <= 1'b0;
52
                we_o <= 1'b0;
53
                sel_o <= 4'h0;
54
                adr_o <= 34'h0;
55
                dat_o <= 32'h0;
56
                state <= BUS_ERROR;
57
        end

powered by: WebSVN 2.1.0

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