Recap - Declare Signals
Part of the Fundamentals section of Coddy's Verilog journey. Lesson 12 of 90.
Challenge
Add the missing signal declarations based on what you learned in this chapter.
What to do:
- Declare an 8-bit wire called
data - Declare a 4-bit reg called
counter - Declare an integer called
i - Declare a parameter called
MAXwith value255
Try it yourself
module data_types;
// Declare an 8-bit wire called data
// Declare a 4-bit reg called counter
// Declare an integer called i
// Declare a parameter called MAX with value 255
endmodule
All lessons in Fundamentals
4Operators Part 1
Arithmetic OperatorsModulo OperatorComparison OperatorsRecap - Simple MathBitwise Operators7Assign And Gates
Continuous AssignmentAssign With OperatorsBuilt In Gate PrimitivesAND OR NOT GatesXOR XNOR GatesRecap - Logic Gate Circuit10Decision Making
If StatementIf - ElseRecap - Simple ComparatorCase StatementCasex And CasezRecap - ALU Design5Operators Part 2
Logical OperatorsReduction OperatorsShift OperatorsConcatenation OperatorConditional OperatorRecap - Operator Challenge3Number System
Binary RepresentationSized NumbersUnsized NumbersNegative NumbersSpecial Values X And ZRecap - Number Formats6Modules
Module StructureInput And Output PortsInout PortsModule InstantiationPort Mapping By NamePort Mapping By OrderRecap - Build A Module9Procedural Blocks
Always BlockInitial BlockSensitivity ListBlocking AssignmentNon Blocking AssignmentRecap - Always vs Initial15Traffic Light Controller
Defining The StatesState Machine LogicPractice on your own: Online Verilog compiler