Question: Write the Verilog code using if statement to describe the ... 1) Write the Verilog code using if statement to describe the 8-to-3 priority encoder
Write the Verilog code using if statement to describe the ...

1) Write the Verilog code using if statement to describe the 8-to-3 priority encoder given in the functional/operation table below 2) Write the testbench to functionally simulate the 8-to-3 priority encoder. Since there are 8 inputs -> 28 = 256 combinations of input, we will NOT write all input combination in the testbench. Use the following input combinations in your testbench. 17 16 15 14 13 12 11 10 00000000 00000001 1 0 1 0 1 1 1 1 01100000 0 0 0 1 1 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 1 00000011 1) Write the Verilog code using if statement to describe the 8-to-3 priority encoder given in the functional/operation table below 2) Write the testbench to functionally simulate the 8-to-3 priority encoder. Since there are 8 inputs -> 28 = 256 combinations of input, we will NOT write all input combination in the testbench. Use the following input combinations in your testbench. 17 16 15 14 13 12 11 10 00000000 00000001 1 0 1 0 1 1 1 1 01100000 0 0 0 1 1 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 1 00000011
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
