Forum Discussion
Altera_Forum
Honored Contributor
15 years agoLab8: Memory Blocks problems
Hello, I've been trying to figure out what's wrong with my design for lab8 part 2. I've implemented the RAM LPM and a hex 7segment driver but I can't seem to get it to work in my process. Can anyon...
Altera_Forum
Honored Contributor
15 years agoHello,
Work and life have kept me from my hobby, even though it's been scratching at the back of my mind all this time. So now i finally have a chance to look at this stuff again and I'm having trouble with type conversion. Taking your advice, Tricky, I've changed my if to: --- Quote Start --- if(rising_edge(KEY)) then --- Quote End --- But this gives me the error: --- Quote Start --- Error (10476): VHDL error at part2.vhd(35): type of identifier "KEY" does not agree with its usage as "std_ulogic" type --- Quote End --- So then i try to change this to: --- Quote Start --- if(rising_edge(std_logic(KEY))) then --- Quote End --- But I get an error saying: --- Quote Start --- Error (10305): VHDL Type Conversion error at part2.vhd(35): cannot convert type "UNSIGNED" to type "std_logic" --- Quote End --- I've googled VHDL type conversion for over an hour now and can't seem to find an answer. For all its type safety, VHDL design practice documentation seems to lack very much. Could someone please help?