Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- That sounds very much correct if you were writing some C. But remember, this is VHDL (VHSIC Hardware Description Language), so you cannot just write a load of programming instructions and expect it to work. VHDL describes a logic circuit, not a load of instructions to execute in order (but it will also do that, but only in a simulation model - but dont think like this). You need to understand what circuit you're trying to create before writing any code. There is a lot of VHDL that is not synthesisable. I suggest you learn about the VHDL templates for synthesisable constructs (I suggest the Quartus manual, that contains all the templates you need). Or even a good textbook. I suggest you start on paper, and draw the circuit out. When you know what the circuit should be, then you can write the HDL. --- Quote End --- That was what I was afraid of. I can draw out a circuit, but then I seem to have problems taking the input and using it for something such as binary math... sounds like I have to implement an ALU. Or partially instead of telling VHDL to do binary math. I've been using Ashenden's "The Student's Guide to VHDL". The examples / syntax are sometimes hard to follow. Do you have a cookbook or "learn by example" book you'd recommend?