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.

looking for verilog codings for my Montgomery modular algo.

Status
Not open for further replies.

simu

Junior Member level 3
Joined
Aug 27, 2007
Messages
25
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,469
verilog codings please

can anyone give me verilog codings for the following Montgomery modular multiplication algorithm

Input:x,y,m: m is odd, |x|< m, & |y|< m
output: z:z mod m = xy2^(-n-2)(mod m), & |z|<m
1. z<- 0;
2. for i <- 0 to n+1;
3. z <- MODDIV2FLAG(z+x(y[i-1]-y),m);
 

Re: verilog codings please

Can you explain your algorithm? i got confused!
 

    simu

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top