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

运行结果:

相关推荐
阿容1234568 小时前
stm32两轮平衡小车 -04
stm32·嵌入式硬件
唐·柯里昂79811 小时前
野火鲁班猫5使用正点原子 RTL8188EUS Wifi模块驱动移植(Linux5.10 Debian系统) 解决zsh报错
linux·c语言·mcu·物联网·ubuntu·硬件工程·软件构建
MARIN_shen12 小时前
Marin说PCB之波峰焊和选择性波峰焊焊接插件的区别
硬件工程·pcb工艺
第二层皮-合肥13 小时前
50天精通FPGA设计第八天-门电路基础知识
fpga开发
皓月盈江13 小时前
STC12、STC15、STM32系列单片机控制16*64LED点阵屏显示,修改显示内容
单片机·嵌入式硬件·keil·stm32f103c8t6·stc12c5a60s2·stc15w4k32s4·led点阵屏程序源码
qq_4480111613 小时前
USB概述
嵌入式硬件
li星野14 小时前
打工人日报#20251202
单片机·嵌入式硬件
超能力MAX14 小时前
八股-异步时钟单脉冲传输
fpga开发
MARIN_shen15 小时前
Marin说PCB之PCB电源路径上的ESR变化对其PDN性能的影响
硬件工程·pcb工艺
云山工作室15 小时前
基于ZigBee的温室智能控制系统设计(论文+源码)
stm32·单片机·嵌入式硬件·物联网·课程设计