AQ Verilog code