Question: how always block works in verilog?
Answer: always@ block are set/updated. They are not otherwise. Elements in an always@ block are set/updated in sequentially and in parallel, depending on the type of assignment used. There are two types of assignments: <= (non-blocking) and = (blocking).