Jun 19, 2006 #1 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 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.
Sep 18, 2006 #2 Junjie82 Technical User Sep 18, 2006 1 CA Hi, i may use substraction instead. like, while temp>100 loop temp <= input - 100; end loop; output <= temp; Upvote 0 Downvote
Hi, i may use substraction instead. like, while temp>100 loop temp <= input - 100; end loop; output <= temp;