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
219 B

5 years ago
  1. template Ops() {
  2. signal input in[2];
  3. signal output add;
  4. signal output sub;
  5. signal output mul;
  6. add <-- in[0] + in[1];
  7. sub <-- in[0] - in[1];
  8. mul <-- in[0] * in[1];
  9. }
  10. component main = Ops();