HDLbits 刷题 --7420

The 7400-series integrated circuits are a series of digital chips with a few gates each. The 7420 is a chip with two 4-input NAND gates.

Create a module with the same functionality as the 7420 chip. It has 8 inputs and 2 outputs.

译:

7400系列集成电路是一系列每个都包含几个逻辑门的数字芯片。7420是一款带有两个4输入NAND门的芯片。

我们可以创建一个模块,其功能与7420芯片相同。这个模块将有8个输入和2个输出。以下是使用Verilog HDL创建这样一个模块的示例代码

复制代码
module top_module ( 
    input p1a, p1b, p1c, p1d,
    output p1y,
    input p2a, p2b, p2c, p2d,
    output p2y );
    assign p1y = ~(p1a & p1b & p1c & p1d);
	assign p2y = ~(p2a & p2b & p2c & p2d);
endmodule

运行结果:

相关推荐
开发笔记-阿牛1 小时前
解析一款有意思的产品||CK6159A语音芯片设计的儿童专注力训练机-舒尔特玩具
stm32·单片机·嵌入式硬件·音频
残影飞雪3 小时前
ESP32-C5下载烧录固件失败报错的原因
单片机·嵌入式硬件
SCJ水测家-水位流量监测3 小时前
2026 本地水务产品精选|管网双水位一体化监测,高效解决管网水位监测各类难题
智能硬件
搞全栈小苏3 小时前
SIMetrix_simplis8.4安装教程——附安装包
stm32·单片机·嵌入式硬件·电力电子
QXWZ_IA4 小时前
**电力登高作业高空失保实时监管:千寻智能安全带高挂低用监测方案**
人工智能·科技·算法·能源·智能硬件
qq_573967824 小时前
STM32控制器
stm32·单片机·嵌入式硬件
某林2125 小时前
履带小车底盘stm32F103RCT6开发
人工智能·stm32·单片机·嵌入式硬件·架构·人机交互·ros2
sramdram6 小时前
低功耗MCU微控制器在动态血糖仪(CGM)中的应用方案
单片机·嵌入式硬件·mcu·mcu微控制器
Dlrb12116 小时前
ARM--IMX6ULL的SDK学习,BSP开发工程管理,以及链接脚本与Makefile的编写
单片机·嵌入式硬件·arm·sdk·链接脚本·i.mx6ull·cortex-a7
李永奉6 小时前
杰理可视化SDK开发-配置ANC主动降噪功能模块教程
单片机·嵌入式硬件·物联网