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

运行结果:

相关推荐
国科安芯9 小时前
可更换的心脏:ASP4644S2B电源模块与模块化卫星在轨可维护供电架构
单片机·fpga开发·架构·电源模块·低轨卫星·抗辐射
国科安芯10 小时前
看不见的地基:ASP4644S2B四通道电源模块与星载电源分配网络的完整性设计
网络·嵌入式硬件·fpga开发·adc·电源模块·抗辐射·载荷
MDYFPGA12 小时前
CO5650 Kintex-7核心板选型:DDR、接口与旧工程复用
fpga开发·fpga
袁章根13 小时前
WiFi 外围电路设计(基于正基科技AP6275PR3模块)
网络·科技·硬件架构·硬件工程
意法半导体STM3214 小时前
【官方原创】全新升级的STM32Cube生态,支持STM32C5
stm32·单片机·嵌入式硬件·stm32cubemx
威嵌神州15 小时前
NXP P2020核心板技术解析:PowerPC架构与VxWorks存量项目迁移指南
嵌入式硬件·微服务·云原生·架构
女神下凡2 天前
芯参谋(119):凌阳(Sunplus)_开发指南
linux·arm开发·stm32·单片机·嵌入式硬件
LabVIEW开发2 天前
FPGA 目标未填 Resource Name 无法运行
fpga开发
Brilliantwxx3 天前
【STM32】 DAC 数模转换器(理论 + 外设 + 四个实验案例)
笔记·stm32·单片机·嵌入式硬件
无敌贵点大王3 天前
从寄存器层面重学STM32(15)——IIC理论
stm32·单片机·嵌入式硬件