Begin with one wire
A module can describe a hardware block or a testbench. It may have named connections called ports. An input brings a value in. An output carries a result out. The little module below connects them with a continuous assignment. Whenever the input changes, the output follows.
module wire_link(
input wire a,
output wire y
);
assign y = a;
endmoduleHDLBits poses the exercise this way. “Create a module with one input and one output that behaves like a wire.” Try it there, then replace the wire with a two-input gate at the gate bench. HDLBits wire exercise · HDLBits gate exercise
What kind of answer do you need?
- A language rule
- Use the standard for the language edition your tool accepts. It defines what an expression means, how wide it is and when an assignment takes effect. Find the edition
- A worked circuit
- A tutorial can take one design from a drawing through the module ports to a trace. Try predicting an output before looking at the result.
- A synthesis question
- A legal simulation model need not describe hardware that a particular synthesis tool can build. Read the tool’s supported constructs as well as the language rules. Yosys project
- A simulator extension
- The programming language interface links a simulation with routines in C. An extension might read a data file or watch a value change. Look inside the interface
The tutorial directory
These were the working shelves of the 1999 directory. Their names explain why an engineer might consult a question-and-answer collection, a university text and a tool manual on the same afternoon.
- comp.lang.verilog FAQ and Alternate Verilog FAQ
- The discussion group collected recurring language questions in a FAQ. A second FAQ gave readers another route to those answers.
- Bucknell Handbook on Verilog HDL
- A course handbook sat alongside A Hardware Designer’s Guide to Verilog and the Edinburgh introduction for digital design. These were starting points for a reader coming from a circuit course.
- Synthesis Q&A and coding styles
- The Synopsys questions covered synthesis issues. A separate collection paired coding examples with scripts, keeping the hardware description and the instructions passed to the tool side by side.
- PLI and VeriPage
- A Brief Introduction to PLI explained the interface. VeriPage collected pointers for readers ranging from beginners to people already writing simulator extensions.
- Papers and personal directories
- Synopsys technical papers included work from its users group, SNUG. Rajesh Bawankule’s Verilog & EDA Page gathered wider electronic design automation material. Veripool brought together software and its documentation.
Keep the manual beside the example
For an actual wire, work the HDLBits exercise. For a question about the meaning of the code, look up the same construct in IEEE 1800-2023. When a command-line switch is the puzzle, the Verilator user guide is the more direct read.
Veripool still brings several engineering tools to one place. Its project list is a useful next stop once you can describe the missing step in your own flow. Veripool
