Logical case equality and inequality operators utilizing No of LUTs

OP #5331140
Rate this post
• ▲ useful
▼ not useful
Hello

I am working on point addition algorithm for ecc implementation,the 
verilog code is having logical case equality and inequality operators 
utilizing 238 % LUTs.
I am targeting Nexys 4 ddr FPGA board

In verilog code,
line no 33-
wire addinf = ((x2 === zreg && y2 === zreg) && (x1 !== zreg && y1 !== 
zreg)) || ((x1 === zreg && y1 === zreg) && (x2 !== zreg && y2 !== 
zreg));

When these operators are replaced with logical equality and logical 
inequality(!= and ==)operators then the no of luts decreases but it 
affects simulation results

wire addinf = ((x2 == zreg && y2 == zreg) && (x1 != zreg && y1 != zreg)) 
|| ((x1 == zreg && y1 == zreg) && (x2 != zreg && y2 != zreg));

I have attached the verilog code and the screenshot of 2 project summary

Any suggestions to this problem?
Attached files:
Guest #5331148
Rate this post
• ▲ useful
▼ not useful
You are STILL using all those modulo operators. Can't you just find an 
algorithm that's actually suited for implementation? There has to be 
some way to do this more efficiently.

Other than that, changing the addinf line likely results in a constant 
value for addinf which leads xst to synthesize away most of your code. 
Not sure why though, the === and !== operators don't make any sense for 
implementation anyways.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.