Question: 3 . Read the following Verilog code and find out what it does. State your reasoning. ` ` ` module ques 4 ( w ,

3. Read the following Verilog code and find out what it does. State your reasoning.
```
module ques4(w,y);
input [3:0]w;
output reg [1:0]y;
always@(w)
begin
casex (w)
'b1000:y=3;
'bx100:y=2;
'bxx10:y=1;
default:y=0;
endcase
end
endmodule
```
3 . Read the following Verilog code and find out

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 Electrical Engineering Questions!