Altera_Forum
Honored Contributor
8 years agoHow to ensure multiplexer priority levels coded in VHDL
Hi,
How to ensure a value "CAFE" on the register Reg_In with the RTL code:Reg_In <= X"CAFE" when A = '1' else In_1 when K = '1 else In_2 when L = '1' else In_3 when M = '1' else Bus; A is driven by register output. K,L and M are results of several logic functions driven by registers. All registers are in the same clock domain. Bus is an asynchronous in/output and also used in other parts of the design. Thus, when A is set the In must be forced to "CAFE", despite of changes on the Bus signal. The device I'm using is a Cyclone III and the SW version is 13.1 The implementation: The low Reg_In byte is always set to "FE", the high byte is not set to "CA" sometimes. How to ensure the priority of the multiplexer in VHDL? Or other options? Thx. BaSt