Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to implement MOD function in Hardware.

Status
Not open for further replies.

khaila

Full Member level 2
Joined
Jan 13, 2007
Messages
121
Helped
5
Reputation
10
Reaction score
1
Trophy points
1,298
Activity points
2,105
implement mod

Given two inputs A[7..0] and B[7..0].
Design a Hardware block that its inputs are A, B and output C while:
C = A MOD B.
 

implement mod function

unless B is a proper 2^n, where, n is a positive number, you will have to do a divison.
Division can be performed by repetitive subtraction and comparison. Very simple but very time consuming.
Kr,
Avi
http://www.vlsiip.com
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top