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.

15 lines
271 B

  1. template Multiplier() {
  2. signal input a; // 3
  3. signal input b; // 3
  4. signal input c; // 3
  5. signal temp;
  6. signal output d; // 27
  7. signal output e; // 9
  8. temp <== a*b;
  9. d <== temp*c;
  10. e <== b*c;
  11. }
  12. component main{public [a, b]} = Multiplier();