Le problème se produit parce que le fichier msim_setup.tcl (ou l’équivalent de votre simulateur) compile les deux instances dans la même bibliothèque.
Pour contourner ce problème, modifiez le script tcl pour ajouter une nouvelle bibliothèque et déplacez une des instanciations dans cette bibliothèque.
Vous pouvez par exemple voir les lignes suivantes :
ensure_lib./bibliothèques/_highspeed_rs_enc_151/
vmap altera_highspeed_rs_enc_151./bibliothèques/altera_highspeed_rs_enc_151/...
eval vlog -sv « /hs_rs_248_216_enc/altera_highspeed_rs_enc_151/sim/altera_highspeed_rs_enc_lagr_pkg.sv » -travail altera_highspeed_rs_enc_151
eval vlog -sv « /hs_rs_248_232_enc/altera_highspeed_rs_enc_151/sim/altera_highspeed_rs_enc_lagr_pkg.sv » -altera_highspeed_rs_enc_151 de travail
...
eval vsim -lhdpt -t ps -L work -L work_lib -L altera_common_sv_packages... -L altera_highspeed_rs_enc_151
Vous modifiez ensuite comme suit :
ensure_lib./bibliothèques/_highspeed_rs_enc_151/
vmap altera_highspeed_rs_enc_151./bibliothèques/altera_highspeed_rs_enc_151/
ensure_lib./bibliothèques/_highspeed_rs_enc_151_2/
vmap altera_highspeed_rs_enc_151_2./bibliothèques/altera_highspeed_rs_enc_151_2/...
eval vlog -sv « /hs_rs_248_216_enc/altera_highspeed_rs_enc_151/sim/altera_highspeed_rs_enc_lagr_pkg.sv » -altera_highspeed_rs_enc_151 de travail
eval vlog -sv « /hs_rs_248_232_enc/altera_highspeed_rs_enc_151/sim/altera_highspeed_rs_enc_lagr_pkg.sv » -altera_highspeed_rs_enc_151_2 de travail
...
eval vsim -ilhpt -t ps -L work -L work_lib -L altera_common_sv_packages... -L altera_highspeed_rs_enc_151 -L altera_highspeed_rs_enc_151_2
Ce problème devrait être résolu dans une prochaine version de Quartus Prime.