Question: 4. Priority Encoders, Verilog, Debugging, Oh My! (20 points) (a) The Verilog module below implements a (buggy) priority encoder. Complete the truth table, using Xs

 4. Priority Encoders, Verilog, Debugging, Oh My! (20 points) (a) The

4. Priority Encoders, Verilog, Debugging, Oh My! (20 points) (a) The Verilog module below implements a (buggy) priority encoder. Complete the truth table, using Xs where appropriate. (5 points) 1. module pEnc (03, o2,o1,00,el,e0,z) 2. input o3,02,01,o0; 3. output el,e0,z; 4. assign zo3 o2 o1 o0; 7. endmodule (b) What is the priority of inputs in this encoder? (5 points) Highest Priorit Lowest Priorit (c) The priority should be in ascending numerical order from o0 at the highest priority to o3 at the lowest. Re-write a single line of the Verilog to correct the implementation. (5 points) Line # Re-written Line (d) Create an enabled priority encoder by modifying the inputs or outputs to an instantiation of the above module. When the enable bit is low, all outputs are 0, otherwise the module functions as above. Use the following, incomplete module as a start. (5 points) 1. module pEncEn (o3,02,o1,00,en, el,e0,z); 2. input o3,02,01,o0,en; 3 output el,e0,z; 4. assign 5. assign 6. assign 7. pEnc 8. endmodule 4. Priority Encoders, Verilog, Debugging, Oh My! (20 points) (a) The Verilog module below implements a (buggy) priority encoder. Complete the truth table, using Xs where appropriate. (5 points) 1. module pEnc (03, o2,o1,00,el,e0,z) 2. input o3,02,01,o0; 3. output el,e0,z; 4. assign zo3 o2 o1 o0; 7. endmodule (b) What is the priority of inputs in this encoder? (5 points) Highest Priorit Lowest Priorit (c) The priority should be in ascending numerical order from o0 at the highest priority to o3 at the lowest. Re-write a single line of the Verilog to correct the implementation. (5 points) Line # Re-written Line (d) Create an enabled priority encoder by modifying the inputs or outputs to an instantiation of the above module. When the enable bit is low, all outputs are 0, otherwise the module functions as above. Use the following, incomplete module as a start. (5 points) 1. module pEncEn (o3,02,o1,00,en, el,e0,z); 2. input o3,02,01,o0,en; 3 output el,e0,z; 4. assign 5. assign 6. assign 7. pEnc 8. endmodule

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!