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

Subversion Repositories rtf65002

[/] [rtf65002/] [trunk/] [rtl/] [verilog/] [byte_plp.v] - Blame information for rev 37

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
BYTE_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 <= BYTE_PLP2;
30
        end
31
        else if (dhit) begin
32
                cf <= rdat8[0];
33
                zf <= rdat8[1];
34
                im <= rdat8[2];
35
                df <= rdat8[3];
36
                bf <= rdat8[4];
37
                vf <= rdat8[6];
38
                nf <= rdat8[7];
39
                state <= IFETCH;
40
        end
41
        else
42
                dmiss <= `TRUE;
43
BYTE_PLP2:
44
        if (ack_i) begin
45
                cyc_o <= 1'b0;
46
                stb_o <= 1'b0;
47
                sel_o <= 4'h0;
48 13 robfinch
                adr_o <= 34'd0;
49 5 robfinch
                cf <= dati[0];
50
                zf <= dati[1];
51
                im <= dati[2];
52
                df <= dati[3];
53
                bf <= dati[4];
54
                vf <= dati[6];
55
                nf <= dati[7];
56
                state <= IFETCH;
57
        end
58 21 robfinch
        else if (err_i) begin
59
                lock_o <= 1'b0;
60
                cyc_o <= 1'b0;
61
                stb_o <= 1'b0;
62
                we_o <= 1'b0;
63
                sel_o <= 4'h0;
64
                adr_o <= 34'h0;
65
                dat_o <= 32'h0;
66
                state <= BUS_ERROR;
67
        end

powered by: WebSVN 2.1.0

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