A VERILOG simulation of the NA48 trigger and DAQ system