Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are the head of a design team. Two colleagues have submitted their Verilog c

ID: 2248797 • Letter: Y

Question

You are the head of a design team. Two colleagues have submitted their Verilog code designed to implement the circuit in Fig.1. Code A is an attempt at a behavioral implementation, and Code B is an attempt at a structural implementation. Your determine which of the two codes should be used and justify your decis Name job is to ion. Note: Your answer should be based on analysis of the code. Your answer should not be "Behavioral is better than structural, so I pick Code A.” Code A //2x4 Decoder module Decoder24( output wire W, output wire X, output wire Y output wire Z, input wire [1:0] S, Code B //2x4 Decoder module Decoder24( output wire W, output wire X, output wire Y, output wire Z, input wire SO input wire S1, always@(*) case(S) assign w =-SI & ~so; assign X =-S1 & SO; assign Y SI & ~SO; assign Z- S1& SO; endmodule 1: X=1; 2: Y=1; default: W=1; endcase endmodule

Explanation / Answer

I used behavioural approach .because it represents dynamic approach i.e system behaviour changes with the change in input.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote