FA全加器

使用的是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文件,

转载于:https://www.cnblogs.com/johanxu/p/5391618.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值