Task 4 quantize in RTL