1 |
2 |
dinesha |
//////////////////////////////////////////////////////////////////////
|
2 |
|
|
//// ////
|
3 |
|
|
//// OMS 8051 cores common output pad Module ////
|
4 |
|
|
//// ////
|
5 |
|
|
//// This file is part of the OMS 8051 cores project ////
|
6 |
|
|
//// http://www.opencores.org/cores/oms8051mini/ ////
|
7 |
|
|
//// ////
|
8 |
|
|
//// Description ////
|
9 |
|
|
//// OMS 8051 definitions. ////
|
10 |
|
|
//// ////
|
11 |
|
|
//// To Do: ////
|
12 |
|
|
//// nothing ////
|
13 |
|
|
//// ////
|
14 |
|
|
//// Author(s): ////
|
15 |
|
|
//// - Dinesh Annayya, dinesha@opencores.org ////
|
16 |
|
|
//// ////
|
17 |
|
|
//// Revision : Nov 26, 2016 ////
|
18 |
|
|
//// ////
|
19 |
|
|
//////////////////////////////////////////////////////////////////////
|
20 |
|
|
//// ////
|
21 |
|
|
//// Copyright (C) 2000 Authors and OPENCORES.ORG ////
|
22 |
|
|
//// ////
|
23 |
|
|
//// This source file may be used and distributed without ////
|
24 |
|
|
//// restriction provided that this copyright statement is not ////
|
25 |
|
|
//// removed from the file and that any derivative work contains ////
|
26 |
|
|
//// the original copyright notice and the associated disclaimer. ////
|
27 |
|
|
//// ////
|
28 |
|
|
//// This source file is free software; you can redistribute it ////
|
29 |
|
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
30 |
|
|
//// Public License as published by the Free Software Foundation; ////
|
31 |
|
|
//// either version 2.1 of the License, or (at your option) any ////
|
32 |
|
|
//// later version. ////
|
33 |
|
|
//// ////
|
34 |
|
|
//// This source is distributed in the hope that it will be ////
|
35 |
|
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
36 |
|
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
37 |
|
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
38 |
|
|
//// details. ////
|
39 |
|
|
//// ////
|
40 |
|
|
//// You should have received a copy of the GNU Lesser General ////
|
41 |
|
|
//// Public License along with this source; if not, download it ////
|
42 |
|
|
//// from http://www.opencores.org/lgpl.shtml ////
|
43 |
|
|
//// ////
|
44 |
|
|
//////////////////////////////////////////////////////////////////////
|
45 |
|
|
/*
|
46 |
|
|
**---------------------------------------------------------------------
|
47 |
|
|
** Title : wrapper file for Output pad
|
48 |
|
|
** Project :
|
49 |
|
|
**---------------------------------------------------------------------
|
50 |
|
|
** File : OutputPad.v
|
51 |
|
|
** Author : Dinesh A
|
52 |
|
|
** Created :
|
53 |
|
|
** Last modified :
|
54 |
|
|
** Upper Modules/file instantiating this module:
|
55 |
|
|
**---------------------------------------------------------------------
|
56 |
|
|
** Modification history :
|
57 |
|
|
**
|
58 |
|
|
**--------------------------------------------------------------------
|
59 |
|
|
*/
|
60 |
|
|
|
61 |
|
|
module OutputPad (PAD, I);
|
62 |
|
|
inout PAD ;
|
63 |
|
|
input I ;
|
64 |
|
|
|
65 |
|
|
gpio_pads U_OUTPUT_PAD (
|
66 |
|
|
.I(I),
|
67 |
|
|
.OEN(1'b0),
|
68 |
|
|
.PAD(PAD),
|
69 |
|
|
.C(),
|
70 |
|
|
.REN(1'b1)
|
71 |
|
|
|
72 |
|
|
);
|
73 |
|
|
|
74 |
|
|
endmodule
|
75 |
|
|
|