hdlbits系列verilog解答(exams/m2014_q4g)-48

这篇博客详细介绍了如何使用Verilog语言设计并实现包括AND、OR、XOR、NAND、NOR、XNOR及AND-NOT在内的七种逻辑门,通过源码展示和仿真结果验证了设计的正确性。
摘要由CSDN通过智能技术生成


一、问题描述

本次我们将一次创建多个逻辑门,对两个输入a和b通过组合逻辑实现七种不同的输出:

  • out_and: a and b
  • out_or: a or b
  • out_xor: a xor b
  • out_nand: a nand b
  • out_nor: a nor b
  • out_xnor: a xnor b
  • out_anotb: a and-not b

二、verilog源码

module top_module( 
    input a, b,
    output out_and,
    output out_or,
    output out_xor,
    output out_nand
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值