OpenCores
URL https://opencores.org/ocsvn/systemverilog-uart16550/systemverilog-uart16550/trunk

Subversion Repositories systemverilog-uart16550

[/] [systemverilog-uart16550/] [trunk/] [rtl/] [uart_interface.sv] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 hiroshi
/* *****************************************************************************
2
   * title:         uart_16550_rll module                                      *
3
   * description:   RS232 Protocol 16550D uart (mostly supported)              *
4
   * languages:     systemVerilog                                              *
5
   *                                                                           *
6
   * Copyright (C) 2010 miyagi.hiroshi                                         *
7
   *                                                                           *
8
   * This library is free software; you can redistribute it and/or             *
9
   * modify it under the terms of the GNU Lesser General Public                *
10
   * License as published by the Free Software Foundation; either              *
11
   * version 2.1 of the License, or (at your option) any later version.        *
12
   *                                                                           *
13
   * This library 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 GNU         *
16
   * Lesser General Public License for more details.                           *
17
   *                                                                           *
18
   * You should have received a copy of the GNU Lesser General Public          *
19
   * License along with this library; if not, write to the Free Software       *
20
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111*1307  USA *
21
   *                                                                           *
22
   *         ***  GNU LESSER GENERAL PUBLIC LICENSE  ***                       *
23
   *           from http://www.gnu.org/licenses/lgpl.txt                       *
24
   *****************************************************************************
25
   *                            redleaflogic,ltd                               *
26
   *                    miyagi.hiroshi@redleaflogic.biz                        *
27
   *          $Id: uart_interface.sv 108 2010-03-30 02:56:26Z hiroshi $         *
28
   ***************************************************************************** */
29
// --- uart16550 interface signale ---
30
`ifdef SYN
31
/* empty */
32
`else
33
timeunit      1ps ;
34
timeprecision 1ps ;
35
`endif
36
interface uart_bus ;
37
 
38
 
39
   wire  stx_o ;
40
   wire  srx_i ;
41
   wire  rts_o ;
42
   wire  cts_i ;
43
   wire  dtr_o ;
44
   wire  dsr_i ;
45
   wire  ri_i ;
46
   wire  dcd_i ;
47
endinterface : uart_bus
48
 
49
interface wb_bus() ;
50
   wire  clk_i ;   // clock
51
   wire  nrst_i ;  // reset
52
   wire [31:0] adr_i ;   // address
53
   wire [31:0] dat_i ;   // data input
54
   wire [31:0]  dat_o ;   // data output
55
   wire         we_i  ;   // write enable
56
   wire [3:0]   sel_i ;   // select
57
   wire         stb_i ;   // strobe signal
58
   wire         ack_o ;   // acknowledge
59
   wire         cyc_i ;   // cycle assrted
60
   wire         intr_o ;  // interrupt output
61
 
62
   modport master_mp(
63
                     output  clk_i, nrst_i, adr_i, dat_i, we_i, sel_i, cyc_i, stb_i,
64
                     input  dat_o, ack_o, intr_o
65
                     ) ;
66
 
67
   modport slave_mp(
68
                    input  clk_i, nrst_i, adr_i, dat_i, we_i, sel_i, stb_i, cyc_i,
69
                    output dat_o, ack_o, intr_o) ;
70
 
71
endinterface : wb_bus
72
 

powered by: WebSVN 2.1.0

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