Variables
wire
- Connects components together
reg
- Saves a value
- Part of a behavioral description
- Usually corresponds to a wire
- Does NOT necessarily become a register when you synthesize
The rule
- Declare a variable as reg if it is a target of an assignment statement
- Continuous assign doesn’t count