A block diagram and state graph for a divider for unsigned binary numbers is shown subsequently. This

Question:

A block diagram and state graph for a divider for unsigned binary numbers is shown subsequently. This divider divides a 16-bit dividend by a 16-bit divisor to give a 16-bit quotient. The divisor can be any number in the range 1 to 216- 1. The only case where an overflow can occur is when the divisor is 0. Control signals are defined as follows: Ld1€”load the divisor from the input bus; Ld2€”load the dividend from the input bus and clear ACC; Sh€”left shift ACC and Dividend; Su€”load the subtracter output into ACC and set the lower quotient bit to 1; K = 1 when 15 shifts have been made. Write complete Verilog code for the divider. Use always blocks. 

Input Quotient Sh Ld2 Su ACC(16) Dividend(16) Counter Control K Ld1 B (borrow) Subtractor Št -IL42 S2 – Ld1 Divisor -

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: