Forum Discussion
Altera_Forum
Honored Contributor
15 years agohelp with code
hey guys, I am new at working with altera. I am learning to write code in vhdl at this moment. I have an assignment due tomorrow and I am having trouble with it. There is an error in my code a...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- process(go,count,clk,sel) begin if ((go = '0') or (count > 60)) then count <= 0; else if ((go = '1') and (clk'event and clk = '1')) then if (sel = '0') then count <= count + 5; else count <= count + 12; end if; end if; end process; --- Quote End --- The 'else if' on the fifth line should be an 'elsif' (in one word).