$ 0 0 VerilogA has the ceil and floor functions - see the VerilogA reference documentation /doc/veriaref/veriaref.pdf Andrew