Description

Division

Design a hardware module that performs unsigned integer division. Given a dividend and divisor, compute both the quotient and remainder.

The module should handle division by zero by returning maximum values (all 1s) for both quotient and remainder.

Example: For dividend=17 and divisor=5, the output should be quotient=3 and remainder=2.

Input

dividend

32-bit Unsigned Integer
Number to be divided.

divisor

32-bit Unsigned Integer
Number to divide by.

Output

32-bit Unsigned Integer Pair
Quotient and remainder.