Given reg [3:0] A = 4'b1101; reg [2:0] B = 3'b111; reg signed [3:0] C = 4'b1101;

Question:

Given
reg [3:0] A = 4'b1101;
reg [2:0] B = 3'b111;
reg signed [3:0] C = 4'b1101;
reg signed [2:0] D = 3'b111;
reg signed [7:0] S;


Evaluate
i.  S = A + B;
ii.  S = A + B + 0;
iii. S = C + D;
iv. S = C + D + 0;
v.  S = A + D;
vi. S = A + D + 0;

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Digital Systems Design Using Verilog

ISBN: 978-1285051079

1st edition

Authors: Charles Roth, Lizy K. John, Byeong Kil Lee

Question Posted: