I have an entity which has this
TEMPERATURE: in STD_LOGIC_VECTOR(7 downto 0);
as one of the inputs and I need a signal that has the initial value TEMPERATURE. In the entity architecture I've declared the signal
signal temp:STD_LOGIC_VECTOR(7 downto 0):=TEMPERATURE;
but when simulating temp remains UU(unassigned). How do I fix this?
asked May 13, 2018 at 20:19
user9785232
lang-vhdl
TEMPERATUREis and are missing a lot of context. Please provide a minimal reproducible example.TEMPERATUREis all'U'. Thus,tempgets initialized to all'U'.'U'stands for uninitialized, not unassigned. You should either initializetempfrom a (generic) constant or implement a flip-flop. Your current design will not synthesize as expected.temptoTEMPERATURE, I would take a step back and consider what it is you are trying to achieve (and what hardware you expect to be synthesised).