title: Difference between mod and rem operators in VHDL?
body: <p>I came across these statements in VHDL programming and could not understand the difference between the two operators mod and rem</p>
  
  <pre><code>    9 mod 5
      (-9) mod 5
      9 mod (-5)
      9 rem 5
      (-9) rem 5
      9 rem (-5)
  </code></pre>