⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myfx2.fit.eqn

📁 FPGA与USB通信的测试代码
💻 EQN
字号:
-- Copyright (C) 1991-2005 Altera Corporation
-- Your use of Altera Corporation's design tools, logic functions 
-- and other software and tools, and its AMPP partner logic 
-- functions, and any output files any of the foregoing 
-- (including device programming or simulation files), and any 
-- associated documentation or information are expressly subject 
-- to the terms and conditions of the Altera Program License 
-- Subscription Agreement, Altera MegaCore Function License 
-- Agreement, or other applicable license agreement, including, 
-- without limitation, that your use is for the sole purpose of 
-- programming logic devices manufactured by Altera and sold by 
-- Altera or its authorized distributors.  Please refer to the 
-- applicable agreement for further details.
--nRESET is nRESET at PIN_131
--operation mode is input

nRESET = INPUT();


--PA[4] is PA[4] at PIN_39
--operation mode is input

PA[4] = INPUT();


--PA[5] is PA[5] at PIN_38
--operation mode is input

PA[5] = INPUT();


--PA[6] is PA[6] at PIN_23
--operation mode is input

PA[6] = INPUT();


--PA[7] is PA[7] at PIN_21
--operation mode is input

PA[7] = INPUT();


--GPD[0] is GPD[0] at PIN_67
--operation mode is input

GPD[0] = INPUT();


--GPD[1] is GPD[1] at PIN_66
--operation mode is input

GPD[1] = INPUT();


--GPD[2] is GPD[2] at PIN_65
--operation mode is input

GPD[2] = INPUT();


--GPD[3] is GPD[3] at PIN_64
--operation mode is input

GPD[3] = INPUT();


--GPD[4] is GPD[4] at PIN_63
--operation mode is input

GPD[4] = INPUT();


--GPD[5] is GPD[5] at PIN_62
--operation mode is input

GPD[5] = INPUT();


--GPD[6] is GPD[6] at PIN_61
--operation mode is input

GPD[6] = INPUT();


--GPD[7] is GPD[7] at PIN_60
--operation mode is input

GPD[7] = INPUT();


--GPD[8] is GPD[8] at PIN_19
--operation mode is input

GPD[8] = INPUT();


--GPD[9] is GPD[9] at PIN_18
--operation mode is input

GPD[9] = INPUT();


--GPD[10] is GPD[10] at PIN_17
--operation mode is input

GPD[10] = INPUT();


--GPD[11] is GPD[11] at PIN_16
--operation mode is input

GPD[11] = INPUT();


--GPD[12] is GPD[12] at PIN_4
--operation mode is input

GPD[12] = INPUT();


--GPD[13] is GPD[13] at PIN_3
--operation mode is input

GPD[13] = INPUT();


--GPD[14] is GPD[14] at PIN_2
--operation mode is input

GPD[14] = INPUT();


--GPD[15] is GPD[15] at PIN_1
--operation mode is input

GPD[15] = INPUT();


--GPA[0] is GPA[0] at PIN_54
--operation mode is input

GPA[0] = INPUT();


--GPA[1] is GPA[1] at PIN_53
--operation mode is input

GPA[1] = INPUT();


--GPA[2] is GPA[2] at PIN_50
--operation mode is input

GPA[2] = INPUT();


--GPA[3] is GPA[3] at PIN_49
--operation mode is input

GPA[3] = INPUT();


--GPA[4] is GPA[4] at PIN_48
--operation mode is input

GPA[4] = INPUT();


--GPA[5] is GPA[5] at PIN_47
--operation mode is input

GPA[5] = INPUT();


--GPA[6] is GPA[6] at PIN_46
--operation mode is input

GPA[6] = INPUT();


--GPA[7] is GPA[7] at PIN_45
--operation mode is input

GPA[7] = INPUT();


--GPA[8] is GPA[8] at PIN_5
--operation mode is input

GPA[8] = INPUT();


--CTL[0] is CTL[0] at PIN_57
--operation mode is input

CTL[0] = INPUT();


--CTL[1] is CTL[1] at PIN_56
--operation mode is input

CTL[1] = INPUT();


--CTL[2] is CTL[2] at PIN_55
--operation mode is input

CTL[2] = INPUT();


--CTL[3] is CTL[3] at PIN_59
--operation mode is input

CTL[3] = INPUT();


--CTL[4] is CTL[4] at PIN_58
--operation mode is input

CTL[4] = INPUT();


--CTL[5] is CTL[5] at PIN_20
--operation mode is input

CTL[5] = INPUT();


--RDY[0] is RDY[0] at PIN_240
--operation mode is input

RDY[0] = INPUT();


--RDY[1] is RDY[1] at PIN_239
--operation mode is input

RDY[1] = INPUT();


--RDY[2] is RDY[2] at PIN_238
--operation mode is input

RDY[2] = INPUT();


--RDY[3] is RDY[3] at PIN_237
--operation mode is input

RDY[3] = INPUT();


--RDY[4] is RDY[4] at PIN_236
--operation mode is input

RDY[4] = INPUT();


--RDY[5] is RDY[5] at PIN_235
--operation mode is input

RDY[5] = INPUT();


--USER[0] is USER[0] at PIN_13
--operation mode is input

USER[0] = INPUT();


--USER[1] is USER[1] at PIN_12
--operation mode is input

USER[1] = INPUT();


--USER[2] is USER[2] at PIN_11
--operation mode is input

USER[2] = INPUT();


--USER[3] is USER[3] at PIN_8
--operation mode is input

USER[3] = INPUT();


--USER[4] is USER[4] at PIN_7
--operation mode is input

USER[4] = INPUT();


--USER[5] is USER[5] at PIN_6
--operation mode is input

USER[5] = INPUT();


--IFCLK is IFCLK at PIN_14
--operation mode is input

IFCLK = INPUT();


--CLKOUT is CLKOUT at PIN_29
--operation mode is input

CLKOUT = INPUT();


--nINT5 is nINT5 at PIN_15
--operation mode is input

nINT5 = INPUT();


--KEY[0] is KEY[0] at PIN_123
--operation mode is input

KEY[0] = INPUT();


--KEY[1] is KEY[1] at PIN_122
--operation mode is input

KEY[1] = INPUT();


--KEY[2] is KEY[2] at PIN_121
--operation mode is input

KEY[2] = INPUT();


--MMCLK is MMCLK at PIN_153
--operation mode is input

MMCLK = INPUT();


--PA[0] is PA[0] at PIN_44
--operation mode is input

PA[0] = INPUT();


--PA[1] is PA[1] at PIN_43
--operation mode is input

PA[1] = INPUT();


--PA[2] is PA[2] at PIN_42
--operation mode is input

PA[2] = INPUT();


--PA[3] is PA[3] at PIN_41
--operation mode is input

PA[3] = INPUT();


--USBCLK is USBCLK at PIN_124
--operation mode is output

USBCLK = OUTPUT(MMCLK);


--LED[0] is LED[0] at PIN_183
--operation mode is output

LED[0] = OUTPUT(PA[0]);


--LED[1] is LED[1] at PIN_182
--operation mode is output

LED[1] = OUTPUT(PA[1]);


--LED[2] is LED[2] at PIN_181
--operation mode is output

LED[2] = OUTPUT(PA[2]);


--LED[3] is LED[3] at PIN_180
--operation mode is output

LED[3] = OUTPUT(PA[3]);


--RAMAA[0] is RAMAA[0] at PIN_184
--operation mode is output

RAMAA[0] = OUTPUT(GND);


--RAMAA[1] is RAMAA[1] at PIN_185
--operation mode is output

RAMAA[1] = OUTPUT(GND);


--RAMAA[2] is RAMAA[2] at PIN_186
--operation mode is output

RAMAA[2] = OUTPUT(GND);


--RAMAA[3] is RAMAA[3] at PIN_187
--operation mode is output

RAMAA[3] = OUTPUT(GND);


--RAMAA[4] is RAMAA[4] at PIN_188
--operation mode is output

RAMAA[4] = OUTPUT(GND);


--RAMAA[5] is RAMAA[5] at PIN_226
--operation mode is output

RAMAA[5] = OUTPUT(GND);


--RAMAA[6] is RAMAA[6] at PIN_227
--operation mode is output

RAMAA[6] = OUTPUT(GND);


--RAMAA[7] is RAMAA[7] at PIN_228
--operation mode is output

RAMAA[7] = OUTPUT(GND);


--RAMAA[8] is RAMAA[8] at PIN_233
--operation mode is output

RAMAA[8] = OUTPUT(GND);


--RAMAA[9] is RAMAA[9] at PIN_234
--operation mode is output

RAMAA[9] = OUTPUT(GND);


--RAMAA[10] is RAMAA[10] at PIN_220
--operation mode is output

RAMAA[10] = OUTPUT(GND);


--RAMAA[11] is RAMAA[11] at PIN_219
--operation mode is output

RAMAA[11] = OUTPUT(GND);


--RAMAA[12] is RAMAA[12] at PIN_218
--operation mode is output

RAMAA[12] = OUTPUT(GND);


--RAMAA[13] is RAMAA[13] at PIN_217
--operation mode is output

RAMAA[13] = OUTPUT(GND);


--RAMAA[14] is RAMAA[14] at PIN_216
--operation mode is output

RAMAA[14] = OUTPUT(GND);


--RAMAA[15] is RAMAA[15] at PIN_200
--operation mode is output

RAMAA[15] = OUTPUT(GND);


--RAMAA[16] is RAMAA[16] at PIN_199
--operation mode is output

RAMAA[16] = OUTPUT(GND);


--RAMAA[17] is RAMAA[17] at PIN_198
--operation mode is output

RAMAA[17] = OUTPUT(GND);


--RAMAUB is RAMAUB at PIN_202
--operation mode is output

RAMAUB = OUTPUT(GND);


--RAMALB is RAMALB at PIN_203
--operation mode is output

RAMALB = OUTPUT(GND);


--RAMAWE is RAMAWE at PIN_225
--operation mode is output

RAMAWE = OUTPUT(GND);


--RAMACE is RAMACE at PIN_193
--operation mode is output

RAMACE = OUTPUT(GND);


--RAMAOE is RAMAOE at PIN_201
--operation mode is output

RAMAOE = OUTPUT(GND);


--RAMBA[0] is RAMBA[0] at PIN_106
--operation mode is output

RAMBA[0] = OUTPUT(GND);


--RAMBA[1] is RAMBA[1] at PIN_105
--operation mode is output

RAMBA[1] = OUTPUT(GND);


--RAMBA[2] is RAMBA[2] at PIN_104
--operation mode is output

RAMBA[2] = OUTPUT(GND);


--RAMBA[3] is RAMBA[3] at PIN_103
--operation mode is output

RAMBA[3] = OUTPUT(GND);


--RAMBA[4] is RAMBA[4] at PIN_102
--operation mode is output

RAMBA[4] = OUTPUT(GND);


--RAMBA[5] is RAMBA[5] at PIN_87
--operation mode is output

RAMBA[5] = OUTPUT(GND);


--RAMBA[6] is RAMBA[6] at PIN_86
--operation mode is output

RAMBA[6] = OUTPUT(GND);


--RAMBA[7] is RAMBA[7] at PIN_85
--operation mode is output

RAMBA[7] = OUTPUT(GND);


--RAMBA[8] is RAMBA[8] at PIN_84
--operation mode is output

RAMBA[8] = OUTPUT(GND);


--RAMBA[9] is RAMBA[9] at PIN_83
--operation mode is output

RAMBA[9] = OUTPUT(GND);


--RAMBA[10] is RAMBA[10] at PIN_74
--operation mode is output

RAMBA[10] = OUTPUT(GND);


--RAMBA[11] is RAMBA[11] at PIN_75
--operation mode is output

RAMBA[11] = OUTPUT(GND);


--RAMBA[12] is RAMBA[12] at PIN_76
--operation mode is output

RAMBA[12] = OUTPUT(GND);


--RAMBA[13] is RAMBA[13] at PIN_77
--operation mode is output

RAMBA[13] = OUTPUT(GND);


--RAMBA[14] is RAMBA[14] at PIN_78
--operation mode is output

RAMBA[14] = OUTPUT(GND);


--RAMBA[15] is RAMBA[15] at PIN_118
--operation mode is output

RAMBA[15] = OUTPUT(GND);


--RAMBA[16] is RAMBA[16] at PIN_119
--operation mode is output

RAMBA[16] = OUTPUT(GND);


--RAMBA[17] is RAMBA[17] at PIN_120
--operation mode is output

RAMBA[17] = OUTPUT(GND);


--RAMBUB is RAMBUB at PIN_116
--operation mode is output

RAMBUB = OUTPUT(GND);


--RAMBLB is RAMBLB at PIN_115
--operation mode is output

RAMBLB = OUTPUT(GND);


--RAMBWE is RAMBWE at PIN_88
--operation mode is output

RAMBWE = OUTPUT(GND);


--RAMBCE is RAMBCE at PIN_101
--operation mode is output

RAMBCE = OUTPUT(GND);


--RAMBOE is RAMBOE at PIN_117
--operation mode is output

RAMBOE = OUTPUT(GND);


--RAMAD[0] is RAMAD[0] at PIN_194
--operation mode is bidir

RAMAD[0] = BIDIR(OPNDRN(VCC));


--RAMAD[1] is RAMAD[1] at PIN_195
--operation mode is bidir

RAMAD[1] = BIDIR(OPNDRN(VCC));


--RAMAD[2] is RAMAD[2] at PIN_196
--operation mode is bidir

RAMAD[2] = BIDIR(OPNDRN(VCC));


--RAMAD[3] is RAMAD[3] at PIN_197
--operation mode is bidir

RAMAD[3] = BIDIR(OPNDRN(VCC));


--RAMAD[4] is RAMAD[4] at PIN_221
--operation mode is bidir

RAMAD[4] = BIDIR(OPNDRN(VCC));


--RAMAD[5] is RAMAD[5] at PIN_222
--operation mode is bidir

RAMAD[5] = BIDIR(OPNDRN(VCC));


--RAMAD[6] is RAMAD[6] at PIN_223
--operation mode is bidir

RAMAD[6] = BIDIR(OPNDRN(VCC));


--RAMAD[7] is RAMAD[7] at PIN_224
--operation mode is bidir

RAMAD[7] = BIDIR(OPNDRN(VCC));


--RAMAD[8] is RAMAD[8] at PIN_215
--operation mode is bidir

RAMAD[8] = BIDIR(OPNDRN(VCC));


--RAMAD[9] is RAMAD[9] at PIN_214
--operation mode is bidir

RAMAD[9] = BIDIR(OPNDRN(VCC));


--RAMAD[10] is RAMAD[10] at PIN_213
--operation mode is bidir

RAMAD[10] = BIDIR(OPNDRN(VCC));


--RAMAD[11] is RAMAD[11] at PIN_208
--operation mode is bidir

RAMAD[11] = BIDIR(OPNDRN(VCC));


--RAMAD[12] is RAMAD[12] at PIN_207
--operation mode is bidir

RAMAD[12] = BIDIR(OPNDRN(VCC));


--RAMAD[13] is RAMAD[13] at PIN_206
--operation mode is bidir

RAMAD[13] = BIDIR(OPNDRN(VCC));


--RAMAD[14] is RAMAD[14] at PIN_205
--operation mode is bidir

RAMAD[14] = BIDIR(OPNDRN(VCC));


--RAMAD[15] is RAMAD[15] at PIN_204
--operation mode is bidir

RAMAD[15] = BIDIR(OPNDRN(VCC));


--RAMBD[0] is RAMBD[0] at PIN_100
--operation mode is bidir

RAMBD[0] = BIDIR(OPNDRN(VCC));


--RAMBD[1] is RAMBD[1] at PIN_99
--operation mode is bidir

RAMBD[1] = BIDIR(OPNDRN(VCC));


--RAMBD[2] is RAMBD[2] at PIN_98
--operation mode is bidir

RAMBD[2] = BIDIR(OPNDRN(VCC));


--RAMBD[3] is RAMBD[3] at PIN_97
--operation mode is bidir

RAMBD[3] = BIDIR(OPNDRN(VCC));


--RAMBD[4] is RAMBD[4] at PIN_96
--operation mode is bidir

RAMBD[4] = BIDIR(OPNDRN(VCC));


--RAMBD[5] is RAMBD[5] at PIN_95
--operation mode is bidir

RAMBD[5] = BIDIR(OPNDRN(VCC));


--RAMBD[6] is RAMBD[6] at PIN_94
--operation mode is bidir

RAMBD[6] = BIDIR(OPNDRN(VCC));


--RAMBD[7] is RAMBD[7] at PIN_93
--operation mode is bidir

RAMBD[7] = BIDIR(OPNDRN(VCC));


--RAMBD[8] is RAMBD[8] at PIN_79
--operation mode is bidir

RAMBD[8] = BIDIR(OPNDRN(VCC));


--RAMBD[9] is RAMBD[9] at PIN_80
--operation mode is bidir

RAMBD[9] = BIDIR(OPNDRN(VCC));


--RAMBD[10] is RAMBD[10] at PIN_81
--operation mode is bidir

RAMBD[10] = BIDIR(OPNDRN(VCC));


--RAMBD[11] is RAMBD[11] at PIN_82
--operation mode is bidir

RAMBD[11] = BIDIR(OPNDRN(VCC));


--RAMBD[12] is RAMBD[12] at PIN_107
--operation mode is bidir

RAMBD[12] = BIDIR(OPNDRN(VCC));


--RAMBD[13] is RAMBD[13] at PIN_108
--operation mode is bidir

RAMBD[13] = BIDIR(OPNDRN(VCC));


--RAMBD[14] is RAMBD[14] at PIN_113
--operation mode is bidir

RAMBD[14] = BIDIR(OPNDRN(VCC));


--RAMBD[15] is RAMBD[15] at PIN_114
--operation mode is bidir

RAMBD[15] = BIDIR(OPNDRN(VCC));




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -