Warning (10240): Verilog HDL Always Construct warning at decoder.v(10): inferring latch(es) for variable "num_seg", which holds its previous value in one or more paths through the always construct
Warning: Latch decoder:u3|num_seg[0] has unsafe behavior