half_adder.map.eqn

来自「用VHDL语言实现半加器。已经通过编译和仿真」· EQN 代码 · 共 74 行

EQN
74
字号
-- Copyright (C) 1991-2006 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.
--A1L6 is s~2
--operation mode is normal

A1L6 = b $ a;


--d is d
--operation mode is normal

d = b & a;


--b is b
--operation mode is input

b = INPUT();


--a is a
--operation mode is input

a = INPUT();


--s is s
--operation mode is output

s = OUTPUT(A1L6);


--co is co
--operation mode is output

co = OUTPUT(d);


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

VGA[0] = OUTPUT(VCC);


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

VGA[1] = OUTPUT(GND);


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

VGA[2] = OUTPUT(GND);


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

VGA[3] = OUTPUT(GND);


⌨️ 快捷键说明

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