0. 简介
HDLBits 是一个汇集了小型电路设计练习的网站,专为使用 Verilog 硬件描述语言(HDL)进行数字硬件设计的练习而设计。网站上的练习题目从教程风格的入门题开始,逐步增加难度,挑战你的电路设计技能。
每个练习题目要求你使用 Verilog 设计一个小型电路,并提交你的代码。HDLBits 会通过一组测试向量对你的电路模块进行模拟,并与参考解决方案进行比较,立即反馈电路的正确性。
1. Getting Started
1.1 output 1
-
question & answer
创建一个没有输入和输出的电路,输出恒为1。
Build a circuit with no inputs and one output. That output should always drive 1 (or logic high).module top_module( output one ); // Insert your code here assign one = 1'b1; endmodule
- waveform
1.2 output 0
-
question & answer
创建一个没有输入和输出的电路,输出恒为0.
Build a circuit with no inputs and one output that outputs a constant 0module top_module( output zero );// Module body starts after semicolon assign zero = 1'b0; endmodule
- waveform
来自广东