XVIV_GHDL_UNISIM(1) Retro Project Manual XVIV_GHDL_UNISIM(1) NNAAMMEE xviv_ghdl_unisim - compile Xilinx Vivado UNISIM and UNIMACRO libraries for GHDL SSYYNNOOPPSSIISS xxvviivv__gghhddll__uunniissiimm [_G_H_D_L_-_O_P_T_I_O_N]... DDEESSCCRRIIPPTTIIOONN xxvviivv__gghhddll__uunniissiimm compiles the Xilinx Vivado UNISIM and UNIMACRO li- braries for gghhddll. The object files generated by gghhddll are stored in the directory tree of the currently active version of Vivado under _$_X_T_W_V___P_A_T_H_/_g_h_d_l_/_u_n_i_s_i_m and _$_X_T_W_V___P_A_T_H_/_g_h_d_l_/_u_n_i_m_a_c_r_o. This script builds the 'retarget' version of UNISIM, thus most legacy entities from the ISE UNISIM library are available and will be mapped to the matching Series-7 entities. Just use the gghhddll option -P${XWTI_PATH}/ghdl/unisim -P${XWTI_PATH}/ghdl/unimacro to link to the UNISIM or UNIMACRO library. gghhddll can be used without an xxttwwvv wrapper. The Xilinx source code has since many releases some buggy statements with self-referential initializations. They seem to be tolerated by the commercial tools but not by gghhddll. The xxiilliinnxx__vvhhddll__mmeemmccoollllttyyppee__ffiixx helper script simply removes them, no further problems seen so far. OOPPTTIIOONNSS Options added after the xviv_ghdl_unisim command are simply forwarded to the 'ghdl -a' commands. In general used to specify the optimize level. If no options given _-_O_2 _-_g is used. EENNVVIIRROONNMMEENNTT XXTTWWVV__PPAATTHH points to the root of the currently active Vivado installation. FFIILLEESS _$_X_T_W_V___P_A_T_H_/_d_a_t_a_/_v_h_d_l_/_s_r_c_/_u_n_i_s_i_m_s The VHDL sources for the Xilinx Vivado UNISIM library _$_X_T_W_V___P_A_T_H_/_d_a_t_a_/_v_h_d_l_/_s_r_c_/_u_n_i_m_a_c_r_o The VHDL sources for the Xilinx Vivado UNIMACRO library _$_X_T_W_V___P_A_T_H_/_g_h_d_l The created object files will be written into this directory. The directory is created if it does not exist yet. Note that the _$_X_T_W_V___P_A_T_H directory must be writable for the script. SSEEEE AALLSSOO xxttwwvv(1), gghhddll(1), xxiilliinnxx__vvhhddll__mmeemmccoollllttyyppee__ffiixx(1) AAUUTTHHOORR Walter F.J. Mueller Retro Project 2016-07-02 XVIV_GHDL_UNISIM(1)