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.

Help me find division of two numbers in std_logic (VHDL)

Status
Not open for further replies.

vinodkumar

Full Member level 5
Joined
Oct 5, 2006
Messages
251
Helped
12
Reputation
24
Reaction score
3
Trophy points
1,298
Location
hyderabad
Activity points
2,822
hi frns.need help to find division of two numbers in std_logic.iam very much thnkful if u help me.
 

manish12

Advanced Member level 3
Joined
Nov 21, 2006
Messages
982
Helped
66
Reputation
132
Reaction score
33
Trophy points
1,308
Activity points
6,114
Re: vhdl code

DIVISION IS IT A PART OF ONE OF THE OPERATION IN ALU ? OR IT IS JUST DISCRETE ONE INPUT A + INPUT B= > THEN PROCESSE => OUTPUT B .
 

white_shadow

Member level 1
Joined
May 21, 2004
Messages
41
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
431
Re: vhdl code

Well, the problem can be a pandora's box of sorts.

Here you have the problem of possibly having a remainder.

So you need to resolve a method of determining whether or not you have a remainder (modulo) or not. Then you need to store/concatenate your remainder.

Other than that you can do number conversions, for instance std_logic to integer and vice versa. This is actually a good practice for learning.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top