Altera_Forum
Honored Contributor
13 years agoCode in architecture outside a process
Hello,
i've seen in many places code in an architecture out of any process, but i can't make it work: ..... begin -------------------------------- ---- Component map -------------------------------- if nreset= '0' then flagimagready <= '0'; Pixelactual<="0001100"; iteracionestmp <= iteraciones; step <="00"; Elsif Pixelactual>"1001110" then Pixelactual<=(OTHERS=>'0'); flagimagready <= '1'; Suma1Step<=(OTHERS=>'0'); Suma2Step<=(OTHERS=>'0'); Suma3Step<=(OTHERS=>'0'); End if; returns: error (10500): vhdl syntax error at cnn.vhd(377) near text "if"; expecting "end", or "(", or an identifier ("if" is a reserved keyword), or a concurrent statementerror (10500): vhdl syntax error at cnn.vhd(384) near text "elsif"; expecting "end", or "(", or an identifier ("elsif" is a reserved keyword), or a concurrent statement
error (10500): vhdl syntax error at cnn.vhd(416) near text "if"; expecting ";", or an identifier ("if" is a reserved keyword), or "architecture" (If I include this code inside a process there is no error) The fact is i need this since is a continous code that doesn't need to be triggered by any signal, it iteretively evolves but after the initialisation (if's) will be independent of any input.