Altera_Forum
Honored Contributor
19 years agoCustom Instruction Badly generated
Hi,
I´m trying to generate a custom instruction with the Nios 2 on a Cyclone 2. The SOPC builder generate correctly the CPU but the Quarty 5.1 fail each time to compile with the error : Error: Port "E_ci_combo_a" does not exist in macrofunction "the_CPU_1" Error: Port "E_ci_combo_b" does not exist in macrofunction "the_CPU_1" ... Error: Port "E_ci_combo_writerc" does not exist in macrofunction "the_CPU_1" But the "the_CPU_1" is entirely generated by the SOPC builder The custom intruction is quite simple, just for testing Here is the VHDL code ENTITY transition IS PORT ( dataa : IN STD_LOGIC_VECTOR( 31 DOWNTO 0 ); datab : IN STD_LOGIC_VECTOR ( 31 DOWNTO 0 ); Result : OUT STD_LOGIC_VECTOR ( 31 DOWNTO 0 ) ); END transition; ARCHITECTURE arch_transition OF transition IS BEGIN Result <= dataa + datab; END arch_transition; Do you have already heard about this problem ? Do you have any idea how to fix it ? Thanks