Altera_Forum
Honored Contributor
18 years agoassignments.
How can I assign a std_logic_vector type output a value of 9?
Quartus says integer literal not matched or something. if q: OUT std_logic_vector(3 downto 0); can i do: q<= '1001'; I tried to create a variable and give the variable of integer type a value of 9 then do: q <= variable; I need to know how to assign data to std_logic types. The only reason I want to do this is because: I need the code : q <= (others => '0'); And this only works when q is a std_logic type. The reason i need this is because there is a bug in the altera chips in my college, where if i press reset using pushbutton, it will show 00 when i hold it down, then when i release, it will go back to whatever was previously on the seven segment display. I want it to reset to 00.