(a) Write a Verilog module that describes one bit of a full adder with accumulator. The module...

Question:

(a) Write a Verilog module that describes one bit of a full adder with accumulator. The module should have two control inputs, Ad and L. If Ad = 1, the Y input (and carry input) are added to the accumulator. If L = 1, the Y input is loaded into the accumulator.
(b) Using the module defined in (a), write a Verilog description of a 4-bit subtracter with accumulator. Assume negative numbers are represented in 1’s
complement. The subtracter should have control inputs Su (subtract) and Ld (load).

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: