# Build Local Bus Model
vcom -93 ../Models/LocalBusModel/src/LocalBusModelPkg.vhd
vcom -93 ../Models/LocalBusModel/src/LocalBusModel.vhd

# Build dummy components for Xilinx specific modules
vcom -93 ../Models/XilinxComps/src/xilinx-bufg.vhd
vcom -93 ../Models/XilinxComps/src/xilinx-ibufg.vhd
vcom -93 ../Models/XilinxComps/src/xilinx-ibuf.vhd
vcom -93 ../Models/XilinxComps/src/xilinx-clkdll.vhd
vcom -93 ../Models/XilinxComps/src/xilinx-ofd.vhd
vcom -93 ../Models/XilinxComps/src/xilinx-ifd.vhd

# Build components shared by multiple FPGAs
vcom -93 ../SharedComps/src/BlockRam.vhd
vcom -93 ../SharedComps/src/DualPortRam.vhd
vcom -93 ../SharedComps/src/RippleCounter.vhd
vcom -93 ../SharedComps/src/StrobeExtender.vhd

# Build System FPGA components
#vcom -93 ../SystemFpga/src/FpgaProg.vhd
#vcom -93 ../SystemFpga/src/LbusCont.vhd
#vcom -93 ../SystemFpga/src/EepromCtrl.vhd
#vcom -93 ../SystemFpga/src/SystemFpgaTop.vhd
vcom ../SystemFpga/xilinx/systemfpgatop_timesim.vhd

# Build DSP FPGA components
vcom -93 ../DspFpga/src/DspFpgaPkgV2.vhd
vcom -93 ../DspFpga/src/DspFpgaPkg.vhd
vcom -93 ../DspFpga/src/TriggerGenerator.vhd
vcom -93 ../DspFpga/src/SramSwitching.vhd
vcom -93 ../DspFpga/src/SramWriteCtrl.vhd
vcom -93 ../DspFpga/src/LBusInterface.vhd
vcom -93 ../DspFpga/src/DataInterleave.vhd
vcom -93 ../DspFpga/src/DataRectifier.vhd
vcom -93 ../DspFpga/src/TcgCtrl.vhd
vcom -93 ../DspFpga/src/InterfaceGate.vhd
vcom -93 ../DspFpga/src/Gate.vhd
vcom -93 ../DspFpga/src/CurvedGate.vhd
vcom -93 ../DspFpga/src/GateResultSelect.vhd
vcom -93 ../DspFpga/src/DspFpgaTop.vhd

# Build Peripheral FPGA components
vcom -93 ../PeripheralFpga/CoreGen/SimModels/delay_value_ram.vhd
vcom -93 ../PeripheralFpga/src/DelayValueRam.vhd
vcom -93 ../PeripheralFpga/src/BScanCtrl.vhd
vcom -93 ../PeripheralFpga/src/TriggerDelay.vhd
vcom -93 ../PeripheralFpga/src/FocusUnitCtrl.vhd
vcom -93 ../PeripheralFpga/src/PeripheralVerPkgV1.vhd 
vcom -93 ../PeripheralFpga/src/PeripheralFpgaPkg.vhd
vcom -93 ../PeripheralFpga/src/LBusInterface.vhd
vcom -93 ../PeripheralFpga/src/TriggerPulseGen.vhd
vcom -93 ../PeripheralFpga/src/EncoderMonitor.vhd
vcom -93 ../PeripheralFpga/src/PeripheralFpgaTop.vhd

# Build SRAM model
vcom -93 ../Models/SramModel/src/SramModel.vhd

# Build ADC Model
vcom -93 ../Models/AdcModel/src/AdcModelPkg.vhd
vcom -93 ../Models/AdcModel/src/AdcModel.vhd

