completed RTL model of quantizer