Forum Discussion
Altera_Forum
Honored Contributor
17 years agoVhdl?
Can anyone help with explaining how the statement below works? I'm confused as to why you AND data_out? Is the statement saying if address = x then read_mux_out <= data_out S...
Altera_Forum
Honored Contributor
17 years agoNormally, I would refuse to edit such confuse VHDL code. It should be noted, that A_REP isn't a standard VHDL library function, I see that it's defined in altera_europa_support_lib.vhd. It's not clear to me, if it works at all to apply A_REP to the boolean result of a relational operation.
It would be much better to use understandable standard VHDLif address = "00" then
read_mux_out <= data_out;
else
read_mux_out <= (others => '0');
endif; respectively an conditional assignment in concurrent code.