Verilog语言——HDLBits刷题记录

Verilog语言——HDLBits刷题记录

基础

Simple wire

Create a module with one input and one output that behaves like a wire.

在这里插入图片描述

在这里插入图片描述

Four wires

Create a module with 3 inputs and 4 outputs that behaves like wires that makes these connections:

a -> w
b -> x
b -> y
c -> z

在这里插入图片描述

在这里插入图片描述

Inverter

Create a module that implements a NOT gate.

在这里插入图片描述

在这里插入图片描述

AND gate

Create a module that implements an AND gate.

在这里插入图片描述

在这里插入图片描述

NOR gate

Create a module that implements a NOR gate. A NOR gate is an OR gate with its output inverted. A NOR function needs two operators when written in Verilog.

在这里插入图片描述

在这里插入图片描述

XNOR gate

Create a module that implements an XNOR gate.

在这里插入图片描述

在这里插入图片描述

Declaring wires

The circuits so far have been simple enough that the outputs are simple functions of the inputs. As circuits become more complex, you will need wires to connect internal components together. When you need to use a wire, you should declare it in the body of the module, somewhere before it is first used. (In the future, you will encounter more types of signals and variables that are also declared the same way, but for now, we’ll start with a signal of type wire).

在这里插入图片描述

在这里插入图片描述

7458 chip

The 7458 is a chip with four AND gates and two OR gates.

在这里插入图片描述

在这里插入图片描述

总结

以上就是基础部分的刷题记录,属于非常基础的一些的操作!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值