(a) Complete the following code by defining a macro Sum. Use parameters to initialize the numbers to...

Question:

(a) Complete the following code by defining a macro Sum. Use parameters to initialize the numbers to 9 and 11.
always @(posedge clk)
begin
$display("The sum of %d and %d is %d", A, B, Sum(A,B));
$stop;
$display("This sentence should be on the screen");
end
(b) What will the completed code print on the screen when it executes?

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

Step by Step Answer:

Related Book For  answer-question

Digital Systems Design Using Verilog

ISBN: 978-1285051079

1st edition

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

Question Posted: