Structural versus behavioral Verilog
Structural
- Describe explicit circuit elements
- Describe explicit connections between elements
- e.g., logic gates are instantiated and connected to others
- Just like schematics, but using text
Behavioral
- Describes circuit as algorithms/programs
- What a component does
- Input/output behavior
- Many possible circuits could have same behavior
- e.g., different implementation of a Boolean function