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

Subversion Repositories rtf8088

[/] [rtf8088/] [trunk/] [rtl/] [verilog/] [OUTB.v] - Blame information for rev 3

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

Line No. Rev Author Line
1 2 robfinch
//=============================================================================
2
//  OUTB
3
//  - output byte data to IO.
4
//
5
//
6
//  2009-2012 Robert Finch
7
//  Stratford
8
//  robfinch<remove>@opencores.org
9
//
10
//
11
// This source file is free software: you can redistribute it and/or modify 
12
// it under the terms of the GNU Lesser General Public License as published 
13
// by the Free Software Foundation, either version 3 of the License, or     
14
// (at your option) any later version.                                      
15
//                                                                          
16
// This source file is distributed in the hope that it will be useful,      
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of           
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            
19
// GNU General Public License for more details.                             
20
//                                                                          
21
// You should have received a copy of the GNU General Public License        
22
// along with this program.  If not, see <http://www.gnu.org/licenses/>.    
23
//
24
//=============================================================================
25
//
26
OUTB:   // Entry point for OUTB port,AL
27
        begin
28
                `INITIATE_CODE_READ
29
                state <= OUTB_NACK;
30
        end
31
OUTB_NACK:
32
        if (ack_i) begin
33
                `TERMINATE_CODE_READ
34
                ea <= {12'h000,dat_i};
35
                state <= OUTB1;
36
        end
37
OUTB1:  // Entry point for OUTB [DX],AL
38
        begin
39
                cyc_type <= `CT_WRIO;
40
                mio_o <= 1'b0;
41
                cyc_o <= 1'b1;
42
                stb_o <= 1'b1;
43
                we_o  <= 1'b1;
44
                adr_o <= ea;
45
                dat_o <= al;
46
                state <= OUTB1_NACK;
47
        end
48
OUTB1_NACK:
49
        if (ack_i) begin
50
                cyc_type <= `CT_PASSIVE;
51
                mio_o <= 1'b1;
52
                cyc_o <= 1'b0;
53
                stb_o <= 1'b0;
54
                we_o  <= 1'b0;
55
                state <= IFETCH;
56
        end

powered by: WebSVN 2.1.0

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