You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
225 B

5 years ago
  1. template Ops2() {
  2. signal input in[2];
  3. signal output div;
  4. signal output idiv;
  5. signal output mod;
  6. div <-- in[0] / in[1];
  7. idiv <-- in[0] \ in[1];
  8. mod <-- in[0] % in[1];
  9. }
  10. component main = Ops2();