Delay working (untested) with correct ram sampling, might not work in testbench anymore, still has to bee added to main file