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

Subversion Repositories next186mp3

[/] [next186mp3/] [trunk/] [HW/] [PapilioProMain.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ndumitrach
`timescale 1ns / 1ps
2
//////////////////////////////////////////////////////////////////////////////////
3
// Company: 
4
// Engineer: 
5
// 
6
// Create Date:    15:25:31 11/20/2014 
7
// Design Name: 
8
// Module Name:    PapilioProMain 
9
// Project Name: 
10
// Target Devices: 
11
// Tool versions: 
12
// Description: 
13
//
14
// Dependencies: 
15
//
16
// Revision: 
17
// Revision 0.01 - File Created
18
// Additional Comments: 
19
//
20
//////////////////////////////////////////////////////////////////////////////////
21
 
22
module PapilioPro_Next186Soc
23
        (
24
                input CLK_32MHZ,
25
                output [5:0]VGA_R,
26
                output [5:0]VGA_G,
27
                output [5:0]VGA_B,
28
                output VGA_HSYNC,
29
                output VGA_VSYNC,
30
                output SDRAM_CLK,
31
                output SDRAM_CKE,
32
                output SDRAM_nCAS,
33
                output SDRAM_nRAS,
34
                output SDRAM_nCS,
35
                output SDRAM_nWE,
36
                output [1:0]SDRAM_BA,
37
                output [12:0]SDRAM_ADDR,
38
                inout [15:0]SDRAM_DATA,
39
                output SDRAM_DQML,
40
                output SDRAM_DQMH,
41
                output [7:0]LED,
42
                input BTN_SOUTH,
43
                input BTN_WEST,
44
                input RX,
45
                output TX,
46
                output AUDIO_L,
47
                output AUDIO_R,
48
                inout PS2CLKA,
49
                inout PS2CLKB,
50
                inout PS2DATA,
51
                inout PS2DATB,
52
                output SD_nCS,
53
                output SD_DI,
54
                output SD_CK,
55
                input SD_DO
56
        );
57
 
58
        assign SDRAM_CKE = 1'b1;
59
        wire SDR_CLK;
60
 
61
   ODDR2 #(
62
      .DDR_ALIGNMENT("NONE"), // Sets output alignment to "NONE", "C0" or "C1" 
63
      .INIT(1'b0),    // Sets initial state of the Q output to 1'b0 or 1'b1
64
      .SRTYPE("SYNC") // Specifies "SYNC" or "ASYNC" set/reset
65
   ) ODDR2_inst
66
        (
67
      .Q(SDRAM_CLK), // 1-bit DDR output data
68
      .C0(SDR_CLK),  // 1-bit clock input
69
      .C1(!SDR_CLK), // 1-bit clock input
70
      .CE(1'b1),                // 1-bit clock enable input
71
      .D0(1'b1),                // 1-bit data input (associated with C0)
72
      .D1(1'b0),                // 1-bit data input (associated with C1)
73
      .R(1'b0),         // 1-bit reset input
74
      .S(1'b0)          // 1-bit set input
75
   );
76
 
77
 
78
        system sys_inst
79
        (
80
                .CLK_32MHZ(CLK_32MHZ),
81
                .VGA_R(VGA_R),
82
                .VGA_G(VGA_G),
83
                .VGA_B(VGA_B),
84
                .VGA_HSYNC(VGA_HSYNC),
85
                .VGA_VSYNC(VGA_VSYNC),
86
                .sdr_CLK_out(SDR_CLK),
87
                .sdr_n_CS_WE_RAS_CAS({SDRAM_nCS, SDRAM_nWE, SDRAM_nRAS, SDRAM_nCAS}),
88
                .sdr_BA(SDRAM_BA),
89
                .sdr_ADDR(SDRAM_ADDR),
90
                .sdr_DATA(SDRAM_DATA),
91
                .sdr_DQM({SDRAM_DQMH, SDRAM_DQML}),
92
                .LED(LED),
93
                .BTN_RESET(BTN_SOUTH),
94
                .BTN_NMI(BTN_WEST),
95
                .RS232_DCE_RXD(RX),
96
                .RS232_DCE_TXD(TX),
97
                .SD_n_CS(SD_nCS),
98
                .SD_DI(SD_DI),
99
                .SD_CK(SD_CK),
100
                .SD_DO(SD_DO),
101
                .AUD_L(AUDIO_L),
102
                .AUD_R(AUDIO_R),
103
                .PS2_CLK1(PS2CLKA),
104
                .PS2_CLK2(PS2CLKB),
105
                .PS2_DATA1(PS2DATA),
106
                .PS2_DATA2(PS2DATB),
107
                .RS232_HOST_RXD(1'b0)
108
//              .RS232_HOST_TXD(host_tx_o),
109
//              .RS232_HOST_RST(host_reset)
110
        );
111
 
112
endmodule

powered by: WebSVN 2.1.0

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