Which Boolean equation the following Verilog code Implements
Which Boolean equation the following Verilog code Implements? always@(a orb) if(a) f=Ib; else f=b; end f = a + b f= b + a f = ab + ba f = ab + b Which of the following Verilog statements cause Y to have a low value when Inputs A and B are both low? Select all that apply. assign Y = A && B; Xor(Y, A, B); assign Y = A | | B; nand(Y, A, B); If X is a ten bit number, which of the following will left extend X[9] three times? {(X[9], X[9], X[9], X} (X[9], X[9], X[9], X) {3(X[9]), X[9]} {3{X[9]}, X[9]} The Verilog statement assign Z = A ? (B ? D3: D2): (B? D1: D0) Implements: 1-to-4 demultiplexer 4 to-1 multiplexer 2-to-4 decoder 4-to-2 encoder The Verilog statement assign C = -(|X) (where X is: Input [7:0] X and C Is output) implements: even parity generator odd parity generator all-bit zero detector all-bit one detector
Solution
For part III.:
It will give same expression as XOR gate.So the answers is C.
For part IV:
These options shows A as AND gate, B as XOR gate,C as OR gate and D as NAND gate.So the output will be low for both inputs are low to option A,B.C.
So the answer is A,B,C.
For part V:
Option B will give the correct answer for left extend of x[9].
For part VI:
The expression gives the answer as Multiplexer. So the answer is B.
For part VII:
The expression detects the all bit zero detecter.So option C gives the answer.
