The most common surprise for newcomers transitioning from software to VHDL is how signal assignment (<=) differs from variable assignment (:=). Signals model physical wires that update only after the current simulation delta cycle finishes, whereas variables compute temporary local values immediately inside a process.
Step through rising clock edges to observe why a signal holds its old value until the process suspends, whereas a variable updates immediately on the next line.
process(clk)
variable v : integer := 1;
begin
if rising_edge(clk) then
s <= s + 1; -- scheduled for end of delta
s_copy <= s; -- STILL reads OLD s!
v := v + 1; -- updates IMMEDIATELY
v_copy <= v; -- reads NEW v!
end if;
end process;DATA OBJECTS: SIGNALS, VARIABLES, AND CONSTANTS
- Signals connect processes and entity ports together, carrying scheduled waveform events across hardware modules.
- Variables live locally inside processes, functions, or procedures and update instantaneously on execution.
- Constants hold fixed immutable values known at compile time for widths, reset masks, and timing parameters.
IDENTIFIERS AND NAMING RULES
Standard VHDL identifiers begin with a letter, allow digits and single underscores, ignore letter case differences (my_sig equals MY_SIG), and avoid reserved keywords such as signal, entity, architecture, process, and generate. Double underscores and trailing underscores are illegal.