Question: Figure P4.3 shows a modified version of the code for a 2-to-4 decoder in Figure 4.37. This code is almost correct but contains one error.
Figure P4.3 shows a modified version of the code for a 2-to-4 decoder in Figure 4.37. This code is almost correct but contains one error. What is the error?
![module dec2t04 (W, En, Y); input [1:0] W; input En; output reg](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1662/3/5/8/0926315924ce36d11662358092615.jpg)
![[0:3] Y; integer k; always @(W, En) for (k = 0; k](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1662/3/5/8/15063159286063bc1662358149833.jpg)
module dec2t04 (W, En, Y); input [1:0] W; input En; output reg [0:3] Y; integer k; always @(W, En) for (k = 0; k
Step by Step Solution
3.48 Rating (168 Votes )
There are 3 Steps involved in it
In order to work like a 24 decoder this logic should also ha... View full answer
Get step-by-step solutions from verified subject matter experts
