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

Subversion Repositories rtf65002

[/] [rtf65002/] [trunk/] [rtl/] [verilog/] [plp.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
PLP1:
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 <= PLP2;
30
        end
31
        else if (dhit) begin
32
                cf <= rdat[0];
33
                zf <= rdat[1];
34
                im <= rdat[2];
35
                df <= rdat[3];
36
                bf <= rdat[4];
37
                em <= rdat[29];
38
                vf <= rdat[30];
39
                nf <= rdat[31];
40
                isp <= isp_inc;
41
                radr <= isp_inc;
42
                state <= IFETCH;
43
        end
44
        else
45
                dmiss <= `TRUE;
46
PLP2:
47
        if (ack_i) begin
48
                cyc_o <= 1'b0;
49
                stb_o <= 1'b0;
50
                sel_o <= 4'h0;
51 13 robfinch
                adr_o <= 34'd0;
52 5 robfinch
                cf <= dat_i[0];
53
                zf <= dat_i[1];
54
                im <= dat_i[2];
55
                df <= dat_i[3];
56
                bf <= dat_i[4];
57
                em <= dat_i[29];
58
                vf <= dat_i[30];
59
                nf <= dat_i[31];
60
                isp <= isp_inc;
61
                radr <= isp_inc;
62
                state <= IFETCH;
63
        end
64 21 robfinch
        else if (err_i) begin
65
                lock_o <= 1'b0;
66
                cyc_o <= 1'b0;
67
                stb_o <= 1'b0;
68
                we_o <= 1'b0;
69
                sel_o <= 4'h0;
70
                adr_o <= 34'h0;
71
                dat_o <= 32'h0;
72
                state <= BUS_ERROR;
73
        end

powered by: WebSVN 2.1.0

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