码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Verilog学习之Notgate


    Create a module that implements a NOT gate.

    This circuit is similar to wire, but with a slight difference. When making the connection from the wire in to the wire out we're going to implement an inverter (or "NOT-gate") instead of a plain wire.

    Use an assign statement. The assign statement will continuously drive the inverse of in onto wire out.

    创建一个实现非门的模块。该电路类似于电线,但略有不同。在进行从进线到出线的连接时,我们将使用逆变器(或“非门”)而不是普通线。使用分配语句。分配语句将不断地将 in 的反转驱动到线输出。

    Module Declaration

    module top_module( input in, output out );

    Verilog has separate bitwise-NOT (~) and logical-NOT (!) operators, like C. Since we're working with a one-bit here, it doesn't matter which we choose.

    Verilog 有单独的按位非 (~) 和逻辑非 (!) 运算符,就像 C 一样。由于我们在这里使用一位,所以我们选择哪个并不重要。

     

    module top_module( input in, output out );
        assign out = ~in;

    endmodule

    1. module top_module( input in, output out );
    2. assign out = ~in;
    3. endmodule


     

     

  • 相关阅读:
    基本微信小程序的新冠疫苗预约小程序
    OpenCV完美实现两张图片的全景拼接(详细教程)
    NoSQL之redis缓存雪崩、穿透、击穿概念解决办法
    Golang跨平台UI框架之Wails(一)
    盲盒商城小程序开发功能列表
    因果系列文章(9)——反事实(下)
    循环神经网络 - 循环神经网络的简洁实现
    [字符串和内存函数]strcat字符串函数的详解和模拟
    使用R语言自带数据“USArrests”,利用K-means进行聚类分析。建议按照如下步骤进行
    基于SSM的高校宿舍寝室管理系统
  • 原文地址:https://blog.csdn.net/m0_58153897/article/details/126323991
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号