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

Subversion Repositories rtf65002

[/] [rtf65002/] [trunk/] [rtl/] [verilog/] [pla.v] - Blame information for rev 23

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
// Works for both eight bit and 32 bit modes
24
//
25
PLA1:
26
        if (unCachedData) begin
27
                cyc_o <= 1'b1;
28
                stb_o <= 1'b1;
29
                sel_o <= 4'hF;
30
                adr_o <= {radr,2'b00};
31
                state <= PLA2;
32
        end
33
        else if (dhit) begin
34
                res8 <= rdat8;
35
                res <= rdat;
36
                state <= IFETCH;
37
        end
38
        else
39
                dmiss <= `TRUE;
40
PLA2:
41
        if (ack_i) begin
42
                cyc_o <= 1'b0;
43
                stb_o <= 1'b0;
44
                sel_o <= 4'h0;
45
                adr_o <= 34'h0;
46
                res8 <= dati;
47
                res <= dat_i;
48
                state <= IFETCH;
49
        end
50 21 robfinch
        else if (err_i) begin
51
                lock_o <= 1'b0;
52
                cyc_o <= 1'b0;
53
                stb_o <= 1'b0;
54
                we_o <= 1'b0;
55
                sel_o <= 4'h0;
56
                adr_o <= 34'h0;
57
                dat_o <= 32'h0;
58
                state <= BUS_ERROR;
59
        end

powered by: WebSVN 2.1.0

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