hardware implementation of mod operation

Discussion in 'VHDL' started by rudy_b, Jan 15, 2011.

  1. rudy_b

    rudy_b

    Joined:
    Jan 15, 2011
    Messages:
    1
    Hi all,
    I am just wondering how is the mod operation in the vhdl is implemented in the hardware?
    For example, if I have mod(42,30), assuming the entries are integers, how will this be implemented in hardware?

    Because I know that Synplify, supports non-power-2 mod operations, so I can just use the function as is, but I just want to see how it is being translated into vhdl logic description.
    So, does is actually utilize a dedicated multiplier for this? And is it going to give results within one clock cycle, no matter how big the integers are?

    If that is the case, then does anyone know of a hardware efficient implementation of the mod operation? Maybe something that uses less resources?
    rudy_b, Jan 15, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rag
    Replies:
    0
    Views:
    630
  2. Hari Sekhon
    Replies:
    0
    Views:
    479
    Hari Sekhon
    Jun 20, 2006
  3. david ullua
    Replies:
    13
    Views:
    637
  4. ryles
    Replies:
    3
    Views:
    503
    Piet van Oostrum
    Jul 26, 2009
  5. T. Onoma
    Replies:
    9
    Views:
    336
    Dave Thomas
    Dec 15, 2003
Loading...

Share This Page