HDL & Verification
What is a major difference between a description written in an HDL such as Verilog and a software program in a language such as C?
- AAn HDL description represents circuits that operate concurrently
- BAn HDL description is a sequence of instructions executed one line at a time from the top
- CHDLs cannot use variables or conditional branches
Show answer and explanation
Answer: A. An HDL description represents circuits that operate concurrently
An HDL looks like a program, but logic synthesis turns what is written into gates and flip-flops. Every part of a circuit operates at all times, so multiple assign statements and always blocks work in parallel regardless of their order in the text. Thinking "do this, then that" as in software leads to unintended circuits, so it is important to picture the circuit being created while writing.
- A. Correct. Every part of the circuit is always operating at once.
- B. That is the software way of thinking.
- C. HDLs do use signals and conditional branches.