1 //22: sendto debug.data
2 //22: sendto debug.data
3 //alu1.out: ack debug.data
8 // route the "max" output to the demux, and that to either
9 // the finished-value output (debug.data) or the subtractor
10 //sort.max: [*] take, sendto demux1.in
11 // demux1.false: [*] take, sendto debug.data
12 // demux1.true: [*] take, sendto alu.a
14 //// route the "min" value to the demux selector to decide if we are
15 //// done; also send copies to the ALU and the secondary sort input
16 //sort.min: [*] take, sendto dup3.in
17 // dup3.a: [*] take, sendto demux1.select
18 // dup3.b: [*] take, sendto alu.b
19 // dup3.c: [*] take, sendto sort.b
21 //// "plug up" the ALU opcode input with a "1" (subtraction)
23 // alu.op: take [*] accept
25 //// route all data emerging from the ALU back to the primary sort input
26 //alu.out: [*] take, sendto sort.a
28 //// all other inputs are in default mode
29 //sort.a: [*] take, accept
30 //sort.b: [*] take, accept
31 //alu.a: [*] take, accept
32 //alu.b: [*] take, accept
33 //dup3.in: [*] take, accept
34 //demux1.select: [*] take, accept
35 //demux1.in: [*] take, accept
37 //// gcd(377,221)=13 (we hope!)
38 ////377: sendto sort.a
39 ////221: sendto sort.b