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

运行结果:

相关推荐
foundbug9994 分钟前
STM32 + SHT20 温湿度测试 TFT 显示方案
stm32·单片机·嵌入式硬件
ALINX技术博客21 分钟前
AMD VU FPGA+NVIDIA Thor AI 超高性能异构平台 ALINX HEA13,支撑新一代边缘 AI 系统
人工智能·fpga开发
渣渣灰95871 小时前
基于STM32F03ZET6移植FreeRTOS
数据库·stm32·嵌入式硬件
magic_now2 小时前
FAT文件系统:嵌入式设备的极简选择
笔记·嵌入式硬件
yuan199972 小时前
STM32 速度控制器:PWM + PID 无级调速实现
stm32·单片机·嵌入式硬件
czwxkn3 小时前
pcb设计-器件:稳压二极管
单片机·嵌入式硬件
刻BITTER3 小时前
W25Q32 SPI Flash 芯片读写速度测试 - 对比全片擦除和扇区擦除
嵌入式硬件
夜猫子ing3 小时前
《嵌入式 Linux 控制服务从零搭建(一):项目立意与架构总览》
linux·嵌入式硬件
森旺电子4 小时前
candence操作
单片机·嵌入式硬件·cadence