I am trying to implement one of the ciphers in VHDL.
I have 2 entities: Main and block_cipher
The Main entity also have a parameter named mode which is of type : std_logic
So from main entity I want to call block_cipher on the basis of the mode value.
e.g.
blk_cipher_prc : process(mode) begin if(mode = 0) then block_cipher_0 : block_cipher port map (text, key,output); end if; end process; But it gives me an error: ERROR:HDLCompiler:806 Syntax error near "port".
My only motive is to call the other entity on the basis of the mode value, If someone can help with my code or can provide some alternative way to do it.