This video explains how to write a synthesizable Verilog program for 4to2 Priority Encoder using ‘if-else’ statement. Also it explains the coding style difference ’Case’ Vs ‘if-else’ wrt the expected hardware.
In this video blogging series, we will be explaining the Verilog coding style for various building blocks like Adder, Multiplexer, Decoder, Encoder, ALU, Flip-Flops, Counter, RAM and FSM. Understanding the coding style of all the building blocks will help you to implement any sub-system or IP in Verilog HDL as a RTL programming expert. Stay tuned!