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

📄 aa.map.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.
--A1L28 is y~154
--operation mode is normal

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


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

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


--A1L26 is y~3
--operation mode is normal

A1L26 = A1L17 $ b[1] $ a[1];


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

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


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

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


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

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


--A1L29 is y~155
--operation mode is normal

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


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

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


--A1L27 is y~7
--operation mode is normal

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


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

A1L22 = A1L20 & a[2];


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

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


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

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


--cin is cin
--operation mode is input

cin = INPUT();


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

b[0] = INPUT();


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

a[0] = INPUT();


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

b[1] = INPUT();


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

a[1] = INPUT();


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

b[2] = INPUT();


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

a[2] = INPUT();


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

b[3] = INPUT();


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

a[3] = INPUT();


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

bcdout[0] = OUTPUT(A1L28);


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

bcdout[1] = OUTPUT(A1L26);


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

bcdout[2] = OUTPUT(A1L29);


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

bcdout[3] = OUTPUT(A1L27);


--cout is cout
--operation mode is output

cout = OUTPUT(A1L25);


⌨️ 快捷键说明

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