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

📄 full_add.fit.eqn

📁 很多vhdl例程代码
💻 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.
--inst3 is inst3 at LC_X34_Y2_N4
--operation mode is normal

inst3_lut_out = !inst3;
inst3 = DFFEAS(inst3_lut_out, key1, VCC, , , , , , );


--inst2 is inst2 at LC_X34_Y1_N2
--operation mode is normal

inst2_lut_out = !inst2;
inst2 = DFFEAS(inst2_lut_out, key2, VCC, , , , , , );


--inst1 is inst1 at LC_X34_Y2_N5
--operation mode is normal

inst1_lut_out = !inst1;
inst1 = DFFEAS(inst1_lut_out, key3, VCC, , , , , , );


--B1L1 is fulladd:inst|add~91 at LC_X34_Y2_N2
--operation mode is normal

B1L1 = inst2 $ inst1 $ inst3;


--B1L2 is fulladd:inst|add~92 at LC_X34_Y2_N6
--operation mode is normal

B1L2 = inst2 & (inst1 # inst3) # !inst2 & inst1 & inst3;


--key1 is key1 at PIN_121
--operation mode is input

key1 = INPUT();


--key2 is key2 at PIN_122
--operation mode is input

key2 = INPUT();


--key3 is key3 at PIN_123
--operation mode is input

key3 = INPUT();


--sum is sum at PIN_48
--operation mode is output

sum = OUTPUT(!B1L1);


--cout is cout at PIN_49
--operation mode is output

cout = OUTPUT(!B1L2);


--led1 is led1 at PIN_50
--operation mode is output

led1 = OUTPUT(!inst3);


--led2 is led2 at PIN_53
--operation mode is output

led2 = OUTPUT(!inst2);


--led3 is led3 at PIN_54
--operation mode is output

led3 = OUTPUT(!inst1);




⌨️ 快捷键说明

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