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.

combinational division by 3

Status
Not open for further replies.

krishanu007

Member level 2
Joined
Apr 8, 2010
Messages
49
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Bangalore,India
Activity points
1,594
Hi all,
I want a circuit which will combinationally divide a number by 3.(or in one cycle :idea:)
whats is given is that number will always be divisible by 3 only.:razz:
post any tutorial link or any helpful post..as I couldnt find any moderate one.
 

Hi yx.yang
any idea what it will synthesize ? I mean what algo will be used in compilers for synthesis.
reg [7:0] divider;
wire [6:0] div_result;

assign div_result = divider / 3;


---------- Post added at 09:55 ---------- Previous post was at 09:43 ----------

Hi yadavvlsi,
I was reading this article & found it is a clock divider circuit,if I am not wrong.
I am sorry if I couldnt make it clear to everyone,I want a divider circuit for dividing a number by 3.as we do for divide by 2,right shift by 1.

 

one half-way solution:
you would notice that
1/3 = 1/4 +1/16 + 1/64 + 1/256 + .. (to infinity)
So you could get an approx result by doing shift-by-2 many times and adding up.
- b

...and further refine by dividing the difference of above result*3 from original number by3 (using a look up table) and adding to above result (all if numbers involved are small 16-bit or so)

-b
 
Last edited:

Hi yx.yang
any idea what it will synthesize ? I mean what algo will be used in compilers for synthesis.


---------- Post added at 09:55 ---------- Previous post was at 09:43 ----------



For synplify and synopsys DC or Candence RTL compiler, the assign div_result = divider / 3 can be synthesised. While for xilinx XST tool, you can just instance the xilinx generated divider IP core (like memories)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top