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

运行结果:

相关推荐
wuyk5557 小时前
AI 时代的嵌入式该怎么学-09-嵌入式vs后端vs算法
人工智能·stm32·单片机·嵌入式硬件·mcu·物联网·算法
SYHC_CSDN8 小时前
FPGA研发,HDL缺陷前置检测方案
fpga开发
西数科技CDRSA11 小时前
BGA封装NAND芯片不识别,Flash Extractor引脚直读还原原始镜像
数据结构·算法·硬件工程
都在酒里17 小时前
STM32 参数管理:默认值、版本迁移与恢复出厂设置
stm32·单片机·嵌入式硬件
SYHC_CSDN17 小时前
HDLHorse:自动生成测试用例,全自动完成数字仿真与报告输出
fpga开发
女神下凡18 小时前
芯易选(143):晶视智能(CVITEK)_开发指南
linux·arm开发·stm32·单片机·嵌入式硬件
简单电磁炮1 天前
STM32 B型漏电流检测项目
stm32·单片机·嵌入式硬件
Milky.Way1 天前
单片机——基础介绍(CPU内部)
单片机·嵌入式硬件
..Dauntless..1 天前
【stm32】中断(四)——保护与恢复
stm32·单片机·嵌入式硬件
ALINX技术博客1 天前
FPGA ADC 采集 + PCIe DMA 传输 + 上位机实时波形显示实战【黑金云课堂】
fpga开发·fpga