diff --git a/libraries/base/diag/hdllib.cfg b/libraries/base/diag/hdllib.cfg
index a3615c4e8bb6f0b1ac13ccf9d132ca07d73025e4..c1777737080635ab9b64d303d123704991d41183 100644
--- a/libraries/base/diag/hdllib.cfg
+++ b/libraries/base/diag/hdllib.cfg
@@ -7,6 +7,7 @@ build_dir_sim = $HDL_BUILD_DIR
 build_dir_synth = $HDL_BUILD_DIR
 
 synth_files =
+    $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_pkg.vhd
     $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_bypass.vhd
     src/vhdl/diag_tx_seq.vhd
     $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_tx_frm.vhd
@@ -15,7 +16,6 @@ synth_files =
     $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_frm_monitor.vhd
     src/vhdl/mms_diag_tx_seq.vhd
     src/vhdl/mms_diag_rx_seq.vhd
-    $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_pkg.vhd
     $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_wg.vhd
     $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_wg_wideband.vhd
     $UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_wg_wideband_reg.vhd