设为首页收藏本站淘宝杂货铺

从F到0 - From F to 0

 找回密码
 注册已关闭
搜索
查看: 827|回复: 0
收起左侧

Quartus Verilog HDL/FPGA 实现 74HC4078/CD4078 一组八输入端或非门 芯片电路源码

[复制链接]
发表于 2022-3-7 08:51:04 | 显示全部楼层 |阅读模式
本帖最后由 HDL 于 2022-3-9 09:16 编辑

main.png
  1. module hc4078(                //74HC4078 一组八输入端或非门 GND:Pin7 VCC:Pin14
  2.         input in1,                //Pin2
  3.         input in2,                //Pin3
  4.         input in3,                //Pin4
  5.         input in4,                //Pin5
  6.         input in5,                //Pin9
  7.         input in6,                //Pin10
  8.         input in7,                //Pin11
  9.         input in8,                //Pin12
  10.         output out                //Pin13
  11. );

  12. assign out = !(|{in1,in2,in3,in4,in5,in6,in7,in8});
  13. endmodule

  14. module main(clk,led);
  15.         input clk;
  16.         output reg led;
  17.         wire out;
  18.         hc4078 hc4078(
  19.                 .in1(1'b1),
  20.                 .in2(1'b0),
  21.                 .in3(1'b1),
  22.                 .in4(1'b0),
  23.                 .in5(1'b1),
  24.                 .in6(1'b0),
  25.                 .in7(1'b1),
  26.                 .in8(1'b0),
  27.                 .out(out)
  28.         );
  29.         always @(posedge clk) begin
  30.                 led <= out;
  31.         end
  32. endmodule
复制代码

相关帖子

您需要登录后才可以回帖 登录 | 注册已关闭

本版积分规则

QQ|手机版|Archiver|从F到0 ( 蒙ICP备17002595号-1 )
蒙公网安备15010402000325号

腾讯云安全认证

GMT+8, 2024-4-26 05:40 , Processed in 1.645094 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表