5
5
// Permission:
6
6
//
7
7
// Terasic grants permission to use and modify this code for use
8
- // in synthesis for all Terasic Development Boards and Altera Development
9
- // Kits made by Terasic. Other use of this code, including the selling
8
+ // in synthesis for all Terasic Development Boards and Altera Development
9
+ // Kits made by Terasic. Other use of this code, including the selling
10
10
// ,duplication, or modification of any portion is strictly prohibited.
11
11
//
12
12
// Disclaimer:
15
15
// which illustrates how these types of functions can be implemented.
16
16
// It is the user's responsibility to verify their design for
17
17
// consistency and functionality through the use of formal
18
- // verification methods. Terasic provides no warranty regarding the use
18
+ // verification methods. Terasic provides no warranty regarding the use
19
19
// or functionality of this code.
20
20
//
21
21
// ============================================================================
22
- //
22
+ //
23
23
// Terasic Technologies Inc
24
24
// 9F., No.176, Sec.2, Gongdao 5th Rd, East Dist, Hsinchu City, 30070. Taiwan
25
25
//
39
39
// Ver :| Author :| Mod. Date :| Changes Made:
40
40
// V1.0 :| Johnny Chen :| 05/08/19 :| Initial Revision
41
41
// V1.1 :| Johnny Chen :| 05/11/16 :| Added FLASH Address FL_ADDR[21:20]
42
- // V1.2 :| Johnny Chen :| 05/11/16 :| Fixed ISP1362 INT/DREQ Pin Direction.
42
+ // V1.2 :| Johnny Chen :| 05/11/16 :| Fixed ISP1362 INT/DREQ Pin Direction.
43
43
// V1.3 :| Johnny Chen :| 06/11/16 :| Added the Dedicated TV Decoder Line-Locked-Clock Input
44
44
// for DE2 v2.X PCB.
45
45
// V1.5 :| Eko Yan :| 12/01/30 :| Update to version 11.1 sp1.
46
46
// ============================================================================
47
47
48
48
module MIPSHQ
49
49
(
50
- // ////////////////// Clock Input ////////////////////
50
+ // ////////////////// Clock Input ////////////////////
51
51
CLOCK_27, // 27 MHz
52
52
CLOCK_50, // 50 MHz
53
53
EXT_CLOCK, // External Clock
@@ -76,7 +76,7 @@ module MIPSHQ
76
76
// /////////////////// SDRAM Interface ////////////////
77
77
DRAM_DQ, // SDRAM Data bus 16 Bits
78
78
DRAM_ADDR, // SDRAM Address bus 12 Bits
79
- DRAM_LDQM, // SDRAM Low-byte Data Mask
79
+ DRAM_LDQM, // SDRAM Low-byte Data Mask
80
80
DRAM_UDQM, // SDRAM High-byte Data Mask
81
81
DRAM_WE_N, // SDRAM Write Enable
82
82
DRAM_CAS_N, // SDRAM Column Address Strobe
@@ -96,8 +96,8 @@ module MIPSHQ
96
96
// ////////////////// SRAM Interface ////////////////
97
97
SRAM_DQ, // SRAM Data bus 16 Bits
98
98
SRAM_ADDR, // SRAM Address bus 18 Bits
99
- SRAM_UB_N, // SRAM High-byte Data Mask
100
- SRAM_LB_N, // SRAM Low-byte Data Mask
99
+ SRAM_UB_N, // SRAM High-byte Data Mask
100
+ SRAM_LB_N, // SRAM Low-byte Data Mask
101
101
SRAM_WE_N, // SRAM Write Enable
102
102
SRAM_CE_N, // SRAM Chip Enable
103
103
SRAM_OE_N, // SRAM Output Enable
@@ -125,7 +125,7 @@ module MIPSHQ
125
125
LCD_DATA, // LCD Data bus 8 bits
126
126
// ////////////////// SD_Card Interface ////////////////
127
127
// SD_DAT, // SD Card Data
128
- // SD_WP_N, // SD Write protect
128
+ // SD_WP_N, // SD Write protect
129
129
// SD_CMD, // SD Card Command Signal
130
130
// SD_CLK, // SD Card Clock
131
131
// ////////////////// USB JTAG link ////////////////////
@@ -204,7 +204,7 @@ output [17:0] LEDR; // LED Red[17:0]
204
204
// ///////////////////// SDRAM Interface ////////////////////////
205
205
inout [15 :0 ] DRAM_DQ; // SDRAM Data bus 16 Bits
206
206
output [11 :0 ] DRAM_ADDR; // SDRAM Address bus 12 Bits
207
- output DRAM_LDQM; // SDRAM Low-byte Data Mask
207
+ output DRAM_LDQM; // SDRAM Low-byte Data Mask
208
208
output DRAM_UDQM; // SDRAM High-byte Data Mask
209
209
output DRAM_WE_N; // SDRAM Write Enable
210
210
output DRAM_CAS_N; // SDRAM Column Address Strobe
@@ -224,8 +224,8 @@ output FL_CE_N; // FLASH Chip Enable
224
224
// ////////////////////// SRAM Interface ////////////////////////
225
225
inout [15 :0 ] SRAM_DQ; // SRAM Data bus 16 Bits
226
226
output [17 :0 ] SRAM_ADDR; // SRAM Address bus 18 Bits
227
- output SRAM_UB_N; // SRAM High-byte Data Mask
228
- output SRAM_LB_N; // SRAM Low-byte Data Mask
227
+ output SRAM_UB_N; // SRAM High-byte Data Mask
228
+ output SRAM_LB_N; // SRAM Low-byte Data Mask
229
229
output SRAM_WE_N; // SRAM Write Enable
230
230
output SRAM_CE_N; // SRAM Chip Enable
231
231
output SRAM_OE_N; // SRAM Output Enable
@@ -307,16 +307,14 @@ MIPS UUT
307
307
.clk(CLOCK_50),
308
308
.rst(SW[0 ]),
309
309
.Sel(SW[1 ]),
310
- .SRAMdata( SRAM_DQ ), // SRAM Data bus 16 Bits
311
- .SRAMaddress( SRAM_ADDR ), // SRAM Address bus 18 Bits
312
- .SRAMWEn( SRAM_WE_N ), // SRAM Write Enable
313
- .SRAMOE( SRAM_OE_N ), // SRAM Output Enable
314
- .Instruction(LEDR[5 :0 ])
310
+ .SRAMdata( SRAM_DQ ), // SRAM Data bus 16 Bits
311
+ .SRAMaddress( SRAM_ADDR ), // SRAM Address bus 18 Bits
312
+ .SRAMWEn( SRAM_WE_N ), // SRAM Write Enable
315
313
);
316
314
317
- assign SRAM_UB_N = 1'b0 ; // SRAM High-byte Data Mask
318
- assign SRAM_LB_N = 1'b0 ; // SRAM Low-byte Data Mask
315
+ assign SRAM_UB_N = 1'b0 ; // SRAM High-byte Data Mask
316
+ assign SRAM_LB_N = 1'b0 ; // SRAM Low-byte Data Mask
319
317
assign SRAM_CE_N = 1'b0 ; // SRAM Chip Enable
320
-
321
- endmodule
318
+ assign SRAM_OE_N = 1'b0 ; // SRAM Output Enable
322
319
320
+ endmodule
0 commit comments