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

Subversion Repositories wf3d

[/] [wf3d/] [trunk/] [implement/] [rtl/] [de0/] [d3d_top.v] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 specular
//=======================================================================
2
// Project Monophony
3
//   Wire-Frame 3D Graphics Accelerator IP Core
4
//
5
// File:
6
//   d3d_top.v
7
//
8
// Abstract:
9
//   DE0 RTL top module
10
//
11
// Author:
12 9 specular
//   Kenji Ishimaru (info.info.wf3d@gmail.com)
13 2 specular
//
14
//======================================================================
15
//
16
// Copyright (c) 2015, Kenji Ishimaru
17
// All rights reserved.
18
//
19
// Redistribution and use in source and binary forms, with or without
20
// modification, are permitted provided that the following conditions are met:
21
//
22
//  -Redistributions of source code must retain the above copyright notice,
23
//   this list of conditions and the following disclaimer.
24
//  -Redistributions in binary form must reproduce the above copyright notice,
25
//   this list of conditions and the following disclaimer in the documentation
26
//   and/or other materials provided with the distribution.
27
//
28
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
30
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
31
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
32
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
33
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
34
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
35
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
37
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
38
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
//
40
// Revision History
41
 
42
module d3d_top (
43
// system
44
input CLK,
45
input RST,
46
// SDRAM
47
output DRAM_CLK,
48
output [11:0] DRAM_ADDR,
49
output [1:0] DRAM_BA,
50
output DRAM_CAS_N,
51
output DRAM_CKE,
52
output DRAM_CS_N,
53
inout[15:0] DRAM_DQ,
54
output [1:0] DRAM_DQM,
55
output DRAM_RAS_N,
56
output DRAM_WE_N,
57
input [3:0] SW,
58
// USB
59
//inout USB_DP,
60
//inout USB_DN,
61
// VGA
62
output [3:0] VGA_R,
63
output [3:0] VGA_G,
64
output [3:0] VGA_B,
65
output VGA_VS,
66
output VGA_HS,
67
// FLASH
68
output DCLK,
69
output SCE,
70
output SDO,
71
input DATA
72
);
73
 
74
d3d_system u0 (
75
  .clk_clk(CLK),
76
  .reset_reset_n(RST),
77
  .altpll_0_c1_clk(DRAM_CLK),
78
  .sdram0_wire_addr(DRAM_ADDR),
79
  .sdram0_wire_ba(DRAM_BA),
80
  .sdram0_wire_cas_n(DRAM_CAS_N),
81
  .sdram0_wire_cke(DRAM_CKE),
82
  .sdram0_wire_cs_n(DRAM_CS_N),
83
  .sdram0_wire_dq(DRAM_DQ),
84
  .sdram0_wire_dqm(DRAM_DQM),
85
  .sdram0_wire_ras_n(DRAM_RAS_N),
86
  .sdram0_wire_we_n(DRAM_WE_N),
87
  .altpll_0_areset_conduit_export(),
88
  .altpll_0_locked_conduit_export(),
89
  .altpll_0_phasedone_conduit_export(),
90
  .pio_0_in_export(SW[3:0]),
91
  //.usb_inout_dp(USB_DP),
92
  //.usb_inout_dn(USB_DN),
93
  .vga_out_cr(VGA_R),
94
  .vga_out_cg(VGA_G),
95
  .vga_out_cb(VGA_B),
96
  .vga_out_vsync_x(VGA_VS),
97
  .vga_out_hsync_x(VGA_HS),
98
  .epcs_flash_controller_0_external_dclk  (DCLK),
99
  .epcs_flash_controller_0_external_sce   (SCE),
100
  .epcs_flash_controller_0_external_sdo   (SDO),
101
  .epcs_flash_controller_0_external_data0 (DATA)
102
);
103
 
104 9 specular
endmodule

powered by: WebSVN 2.1.0

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