C# and Verilog code for FPGA PMT counter project