Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to perform synthesazable mod 100?

Status
Not open for further replies.

japonetz

Technical User
Jun 19, 2006
1
IL
Hi All,
I need to perform a MOD command, something like the one below:

output <= input mod 100;

The problem is that synthesizer requires the multiplier of 2.

So, the question is how to do it?
Code will be appreciated.

Thanks in advance.
 
Hi,

i may use substraction instead. like,

while temp>100 loop
temp <= input - 100;
end loop;
output <= temp;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top