add_file -vhdl -lib "work" "sources/StdTypes.vhd"
add_file -vhdl -lib "work" "sources/constants.vhd"
add_file -vhdl -lib "work" "sources/MupixBoard.vhd"
-add_file -vhdl -lib "work" "sources/InputSynchronizer.vhd"
+add_file -vhdl -lib "work" "sources/Utility/InputSynchronizer.vhd"
add_file -vhdl -lib "work" "sources/MupixBoardInterface.vhd"
-add_file -vhdl -lib "work" "sources/BlockMemory.vhd"
-add_file -vhdl -lib "work" "sources/Histogram.vhd"
-add_file -vhdl -lib "work" "sources/SignalDelay.vhd"
-add_file -vhdl -lib "work" "sources/HitbusHistogram.vhd"
-add_file -vhdl -lib "work" "sources/ADS1018SPI.vhd"
-add_file -vhdl -lib "work" "sources/LTC1658SPI.vhd"
-add_file -vhdl -lib "work" "sources/TestpulseGenerator.vhd"
-add_file -vhdl -lib "work" "sources/MupixBoardDAC.vhd"
-add_file -vhdl -lib "work" "sources/CRC.vhd"
-add_file -vhdl -lib "work" "sources/PixelControl.vhd"
-add_file -vhdl -lib "work" "sources/FIFO.vhd"
-add_file -vhdl -lib "work" "sources/ResetHandler.vhd"
-add_file -vhdl -lib "work" "sources/CircularMemory.vhd"
-add_file -vhdl -lib "work" "sources/ReadoutController.vhd"
-add_file -vhdl -lib "work" "sources/MupixTRBReadout.vhd"
-add_file -vhdl -lib "work" "sources/MuPixDataLink_new.vhd"
-add_file -vhdl -lib "work" "sources/TriggerHandler.vhd"
-add_file -vhdl -lib "work" "sources/Arbiter.vhd"
-add_file -vhdl -lib "work" "sources/DatasourceSelector.vhd"
-add_file -vhdl -lib "work" "sources/FrameGeneratorMux.vhd"
-add_file -vhdl -lib "work" "sources/Generator3.vhd"
-add_file -vhdl -lib "work" "sources/DataMuxWithConversion.vhd"
-add_file -vhdl -lib "work" "sources/GrayCounter2.vhd"
-add_file -vhdl -lib "work" "sources/MuPixUnpacker.vhd"
-add_file -vhdl -lib "work" "sources/LinkSynchronizer.vhd"
add_file -vhdl -lib "work" "sources/MupixClocks.vhd"
+
+add_file -vhdl -lib "work" "sources/Utility/BlockMemory.vhd"
+add_file -vhdl -lib "work" "sources/Utility/Histogram.vhd"
+add_file -vhdl -lib "work" "sources/Utility/SignalDelay.vhd"
+add_file -vhdl -lib "work" "sources/Utility/HitbusHistogram.vhd"
+add_file -vhdl -lib "work" "sources/Utility/GrayCounter2.vhd"
+add_file -vhdl -lib "work" "sources/Utility/FIFO.vhd"
+add_file -vhdl -lib "work" "sources/Utility/CRC.vhd"
+
+add_file -vhdl -lib "work" "sources/SlowControl/ADS1018SPI.vhd"
+add_file -vhdl -lib "work" "sources/SlowControl/LTC1658SPI.vhd"
+add_file -vhdl -lib "work" "sources/SlowControl/TestpulseGenerator.vhd"
+add_file -vhdl -lib "work" "sources/SlowControl/MupixBoardDAC.vhd"
+add_file -vhdl -lib "work" "sources/SlowControl/PixelControl.vhd"
+
+add_file -vhdl -lib "work" "sources/Datapath/ResetHandler.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/CircularMemory.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/ReadoutController.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/MupixTRBReadout.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/MuPixDataLink_new.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/TriggerHandler.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/Arbiter.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/DataMuxWithConversion.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/MuPixUnpacker.vhd"
+add_file -vhdl -lib "work" "sources/Datapath/LinkSynchronizer.vhd"
+
+add_file -vhdl -lib "work" "sources/Simulation/DatasourceSelector.vhd"
+add_file -vhdl -lib "work" "sources/Simulation/FrameGeneratorMux.vhd"
+add_file -vhdl -lib "work" "sources/Simulation/Generator3.vhd"
add_file -vhdl -lib "work" "sources/Simulation/LinkSimulation.vhd"
add_file -vhdl -lib "work" "sources/Simulation/8b10b_enc.vhd"
add_file -vhdl -lib "work" "sources/Simulation/Mupix8StateMachine.vhd"