Fast shifting can be accomplished by using dedicated multipliers. Shifting left N places is equivalent to multiplying

Question:

Fast shifting can be accomplished by using dedicated multipliers. Shifting left N places is equivalent to multiplying by 2N.
(a) Given that A is a 16-bit unsigned number and 0 ≤ N ≤ 15, show how to construct a left shifter using a multiplier and a decoder.

(b) Write Verilog code that infers this type of shifter.
(c) Repeat (a) and (b) for a right shifter.

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: