Altera_Forum
Honored Contributor
11 years agoThe combinational process in VHDL
We can discuss the combinational logic in VHDL using process as following:
comb : process(vindex) begin if (vindex < 59 or vindex > 120) then s_mtvalid <='1'; else s_mtvalid <= s_fifo_mtvalid; end if; end process comb; In this case, there is only "vindex" in sensitive list. If "vindex" doesn't change, it keeps a constant (e.g. 62), whether "s_mtvalid" will keep changing with "s_fifo_mtvalid" toggling? In simulation, my answer is no, since "s_fifo_mtvalid" is not inside the senstive list. If "vindex' keeps constant, the process will not be triggered. Is this correct? But what happen if this process is synthesised? Will this be synthesised to a correct selective comb logic? Thanks in advance.