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

Subversion Repositories rtf65002

[/] [rtf65002/] [trunk/] [rtl/] [verilog/] [php.v] - Blame information for rev 35

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

Line No. Rev Author Line
1 20 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
// State for pushing processor regs. Works for both 8 and 32 bit modes.                       
22
// ============================================================================
23
//
24
PHP1:
25
        if (ack_i) begin
26
                state <= IFETCH;
27
                retstate <= IFETCH;
28
                cyc_o <= 1'b0;
29
                stb_o <= 1'b0;
30
                we_o <= 1'b0;
31
                sel_o <= 4'h0;
32
                adr_o <= 34'd0;
33
                dat_o <= 32'd0;
34 25 robfinch
//              pc <= pc + 32'd1;       // <= this is different from STORE2
35 20 robfinch
                if (dhit) begin
36
                        wr <= 1'b1;
37
                        wrsel <= sel_o;
38
                end
39
                else if (write_allocate) begin
40
                        state <= WAIT_DHIT;
41
                        dmiss <= `TRUE;
42
                end
43
        end
44 21 robfinch
        else if (err_i) begin
45
                lock_o <= 1'b0;
46
                cyc_o <= 1'b0;
47
                stb_o <= 1'b0;
48
                we_o <= 1'b0;
49
                sel_o <= 4'h0;
50
                dat_o <= 32'h0;
51
                state <= BUS_ERROR;
52
        end
53 20 robfinch
 

powered by: WebSVN 2.1.0

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