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

📄 aa.fit.eqn

📁 本程序完成带进位输入输出的四位二进制加法运算
💻 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.
--A1L29 is y~154 at LC3_14_R1
--operation mode is normal

A1L29 = a[0] $ b[0] $ cin;


--A1L17 is co[0]~148 at LC3_8_R1
--operation mode is normal

A1L17 = a[0] & (b[0] # cin) # !a[0] & b[0] & cin;


--A1L27 is y~3 at LC10_8_R1
--operation mode is normal

A1L27 = b[1] $ a[1] $ (A1L17);


--A1L18 is co[0]~149 at LC7_8_R1
--operation mode is normal

A1L18 = b[0] & a[0];


--A1L19 is co[0]~150 at LC5_8_R1
--operation mode is normal

A1L19 = cin & (a[0] # b[0]);


--A1L20 is co[1]~151 at LC6_8_R1
--operation mode is normal

A1L20 = b[1] & (a[1] # A1L19 # A1L18) # !b[1] & a[1] & (A1L19 # A1L18);


--A1L30 is y~155 at LC7_9_R1
--operation mode is normal

A1L30 = a[2] $ A1L20 $ b[2];


--A1L21 is co[2]~152 at LC3_9_R1
--operation mode is normal

A1L21 = a[2] & (A1L20 # b[2]) # !a[2] & A1L20 & b[2];


--A1L28 is y~7 at LC6_9_R1
--operation mode is normal

A1L28 = a[3] $ b[3] $ A1L21;


--A1L22 is co[2]~153 at LC5_9_R1
--operation mode is normal

A1L22 = A1L20 & a[2];


--A1L23 is co[2]~154 at LC9_9_R1
--operation mode is normal

A1L23 = b[2] & (a[2] # A1L20);


--A1L25 is co~155 at LC9_8_R1
--operation mode is normal

A1L25 = b[3] & (A1L23 # a[3] # A1L22) # !b[3] & a[3] & (A1L23 # A1L22);


--cin is cin at PIN_59
--operation mode is input

cin = INPUT();


--b[0] is b[0] at PIN_118
--operation mode is input

b[0] = INPUT();


--a[0] is a[0] at PIN_58
--operation mode is input

a[0] = INPUT();


--b[1] is b[1] at PIN_143
--operation mode is input

b[1] = INPUT();


--a[1] is a[1] at PIN_130
--operation mode is input

a[1] = INPUT();


--b[2] is b[2] at PIN_136
--operation mode is input

b[2] = INPUT();


--a[2] is a[2] at PIN_138
--operation mode is input

a[2] = INPUT();


--b[3] is b[3] at PIN_121
--operation mode is input

b[3] = INPUT();


--a[3] is a[3] at PIN_113
--operation mode is input

a[3] = INPUT();


--bcdout[0] is bcdout[0] at PIN_109
--operation mode is output

bcdout[0] = OUTPUT(A1L29);


--bcdout[1] is bcdout[1] at PIN_110
--operation mode is output

bcdout[1] = OUTPUT(A1L27);


--bcdout[2] is bcdout[2] at PIN_114
--operation mode is output

bcdout[2] = OUTPUT(A1L30);


--bcdout[3] is bcdout[3] at PIN_116
--operation mode is output

bcdout[3] = OUTPUT(A1L28);


--cout is cout at PIN_115
--operation mode is output

cout = OUTPUT(A1L25);


⌨️ 快捷键说明

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