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

📄 led.fit.eqn

📁 这是个的VHDL点亮LED的程序
💻 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.
--~VCC~0 is ~VCC~0 at LC105
~VCC~0_or_out = GND;
~VCC~0 = !(~VCC~0_or_out);


--~GND~0 is ~GND~0 at LC104
~GND~0_or_out = GND;
~GND~0 = ~GND~0_or_out;


--~GND~1 is ~GND~1 at LC102
~GND~1_or_out = GND;
~GND~1 = ~GND~1_or_out;


--~VCC~1 is ~VCC~1 at LC97
~VCC~1_or_out = GND;
~VCC~1 = !(~VCC~1_or_out);


--~VCC~2 is ~VCC~2 at LC94
~VCC~2_or_out = GND;
~VCC~2 = !(~VCC~2_or_out);


--~VCC~3 is ~VCC~3 at LC91
~VCC~3_or_out = GND;
~VCC~3 = !(~VCC~3_or_out);


--~GND~2 is ~GND~2 at LC93
~GND~2_or_out = GND;
~GND~2 = ~GND~2_or_out;


--~VCC~4 is ~VCC~4 at LC89
~VCC~4_or_out = GND;
~VCC~4 = !(~VCC~4_or_out);


--~VCC~5 is ~VCC~5 at LC88
~VCC~5_or_out = GND;
~VCC~5 = !(~VCC~5_or_out);


--~GND~3 is ~GND~3 at LC86
~GND~3_or_out = GND;
~GND~3 = ~GND~3_or_out;


--~GND~4 is ~GND~4 at LC85
~GND~4_or_out = GND;
~GND~4 = ~GND~4_or_out;


--~VCC~6 is ~VCC~6 at LC83
~VCC~6_or_out = GND;
~VCC~6 = !(~VCC~6_or_out);


--~VCC~7 is ~VCC~7 at LC80
~VCC~7_or_out = GND;
~VCC~7 = !(~VCC~7_or_out);


--~VCC~8 is ~VCC~8 at LC81
~VCC~8_or_out = GND;
~VCC~8 = !(~VCC~8_or_out);


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

LED[0] = OUTPUT(~VCC~0);


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

LED[1] = OUTPUT(~GND~0);


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

LED[2] = OUTPUT(~GND~1);


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

LED[3] = OUTPUT(~VCC~1);


--LED[4] is LED[4] at PIN_61
--operation mode is output

LED[4] = OUTPUT(~VCC~2);


--LED[5] is LED[5] at PIN_58
--operation mode is output

LED[5] = OUTPUT(~VCC~3);


--LED[6] is LED[6] at PIN_60
--operation mode is output

LED[6] = OUTPUT(~GND~2);


--LED[7] is LED[7] at PIN_57
--operation mode is output

LED[7] = OUTPUT(~VCC~4);


--LED[8] is LED[8] at PIN_56
--operation mode is output

LED[8] = OUTPUT(~VCC~5);


--LED[9] is LED[9] at PIN_55
--operation mode is output

LED[9] = OUTPUT(~GND~3);


--LED[10] is LED[10] at PIN_54
--operation mode is output

LED[10] = OUTPUT(~GND~4);


--LED[11] is LED[11] at PIN_53
--operation mode is output

LED[11] = OUTPUT(~VCC~6);


--LED[12] is LED[12] at PIN_50
--operation mode is output

LED[12] = OUTPUT(~VCC~7);


--LED[13] is LED[13] at PIN_52
--operation mode is output

LED[13] = OUTPUT(~VCC~8);






⌨️ 快捷键说明

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