FA全加器
2016-04-14 16:28
204 查看
使用的是Quatus ii 8.0 环境
首先新建工程,建立vhdl文件,编写代码:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity FA_xhb089 is
port( A_in_xhb089:in std_logic;
B_in_xhb089,C_in_xhb089:in std_logic;
S_out_xhb089,C_out_xhb089:out std_logic);
end FA_xhb089;
architecture one_xhb089 of FA_xhb089 is
begin
S_out_xhb089 <= A_in_xhb089 xor B_in_xhb089 xor C_in_xhb089;
C_out_xhb089 <= ( A_in_xhb089 and B_in_xhb089 ) or (( A_in_xhb089 or B_in_xhb089 ) and C_in_xhb089);
end one_xhb089;
保存,编译。
在工程中右键vhd文件生成bsf文件,即加法器的符号图。
在Processing 中点击Generate Functional Simulation Netlist,创造仿真环境
新建vwf文件,右键Insert->Insert Node or Bus->Node Finder->list all->list,把引脚添加进去,然后便是设置各种值,保存vwf文件,仿真。
新建vwf文件,
首先新建工程,建立vhdl文件,编写代码:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity FA_xhb089 is
port( A_in_xhb089:in std_logic;
B_in_xhb089,C_in_xhb089:in std_logic;
S_out_xhb089,C_out_xhb089:out std_logic);
end FA_xhb089;
architecture one_xhb089 of FA_xhb089 is
begin
S_out_xhb089 <= A_in_xhb089 xor B_in_xhb089 xor C_in_xhb089;
C_out_xhb089 <= ( A_in_xhb089 and B_in_xhb089 ) or (( A_in_xhb089 or B_in_xhb089 ) and C_in_xhb089);
end one_xhb089;
保存,编译。
在工程中右键vhd文件生成bsf文件,即加法器的符号图。
在Processing 中点击Generate Functional Simulation Netlist,创造仿真环境
新建vwf文件,右键Insert->Insert Node or Bus->Node Finder->list all->list,把引脚添加进去,然后便是设置各种值,保存vwf文件,仿真。
新建vwf文件,
相关文章推荐
- #pragma 预处理指令详解
- SVN上传代码时代码失败
- Python3并发检验代理池地址
- vb
- 计算机图形学(二)输出图元
- Android:onNewIntent()触发机制及注意事项
- Eclipse导出Library
- LeetCode 12. Integer to Roman
- Android onTouchEvent和onInterceptTouchEvent事件分发详解(三)
- java反射机制
- 头文件和库文件有何区别和联系
- AndroidStudio导入HelloCharts的Module
- RTL行为级仿真、综合后门级功能仿真和时序仿真
- AngularJS 知识总结
- 对10个随机数求和(5)
- Linux系统是否能够联网
- n个随机数得排列
- 大叔讲框架《跟谁学》点播课程列表
- 唯一id UUID
- 一致性的3种协议,并发,事务