their calculators All work must be shown for full credit Det

their calculators. All work must be shown for full credit. Determine the value for the 4-bit net \'A\' after each Verilog continuous assignment statement assign A = (2\'b10 ? b1111: 4\'b0101); assign A =^4\'b1010; assign A = {2\'b11, 3\'b010}; assign A = 4\' b1100 & 0011; assign A = !4\' b101; Describe what the instruction set of a processor is. Consider a hypothetical microcomputer system that uses a 10-bit address to access its word addressable register file memory system. Write the Verilog declaration for the associated register file assuming 16-bit words. Write the structural Verilog code to implement the following Boolean expression (do not use behavioral syntax or primitives). D = ABC bar + AC +BC

Solution

ANSWER:

1. A. A = 4\'b1111;

If any bit of the select is a binary 1, the true part will be assigned.

B. A = 4\'b0101

C. A = 4\'b1010.

A is a 4-bit net. So, when you try to put in 5-bits, there would be an overflow of bits and the most significant bits could be lost.

D. A = 4\'b1000

When there is no radix specified, it means that the value is an integer. In this case, 0011 is nothing but 11 in decimal, i.e. \'b 1011. Anding woud give the result mentioned above.

E. A = 0;

If any of the bits in signal of !(signal) is set, the answer would be 0

2. Instruction set describes the various commands which the processor/controller understands and executes them for us.

3. module register_file (input bit [9:0] addr, output [31:0] data);

4. module combo_ex (input A, B, C, output D);

bit A,B,C,D;

wire notB, notC, op1, op2, op3;

not (notB, B);

not (notC, C);

and (op2, A, C);

or (op3, notB, notC);

and (op1, A, B, notC);

or (D, op1, op2, op3);

endmodule

 their calculators. All work must be shown for full credit. Determine the value for the 4-bit net \'A\' after each Verilog continuous assignment statement assig

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site