Voici un exemple de fichier Verilog de haut niveau appelé top_ver.v qui instantanément un fichier VHDL de niveau inférieur appelé bottom_vhdl.vhd :
------------------------------------------------------------------------------------------- module top_ver (p, q, out); input q, p; output out; bottom_vhdl u1 (.a(q), .b(p), .c(out)); endmodule VHDL file (bottom_vhdl.vhd) LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY bottom_vhdl IS PORT (a, b : IN std_logic; c : OUT std_logic); END bottom_vhdl; ARCHITECTURE a OF bottom_vhdl IS BEGIN Process (a, b) BEGIN c
Notez que cela est pris en charge par la synthèse directe dans le logiciel Quartus II. Cela peut être ou non pris en charge dans d’autres outils EDA. Consultez le fournisseur de l’outil pour plus d’informations.