Forum Discussion
Altera_Forum
Honored Contributor
15 years agoBCD counter vhdl code
I am a newbie quartus user.. please help me thanks http://i54.tinypic.com/2zp2p3p.png This is my written code: library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; e...
Altera_Forum
Honored Contributor
15 years agoYou really should have a VHDL tutorial or text book to get some ideas for trial and error. And furthermore learn about the basic concepts of the language and HDL programming in general.
For compatible types, e.g. bit vectors of same length, a typecast is simple. You already have one in your codeq <= std_logic_vector (count_sig); Trial and error actually has a good chance for a hit with the opposite direction count_sig <= unsigned(p);