The difference between variable (variable) and signal (signal) in vhdl

 Signal (signal) variable (variable)
assignment: <= : =

Definition: in structure in process

Scope of application: global in a process

Delay: yes no

Assignment: Immediately assign a value at the end of the process

A few things to note:

1. The variable is assigned at the end of the process, so if you assign multiple times in the process, only the last one is taken.

2. Because fpga is processed in parallel by a process, a variable can only be assigned in one process, otherwise an error will occur.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325572083&siteId=291194637
Recommended