File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ // Verilog
2+ // false_path
3+ // Ninputs 3
4+ // Noutputs 1
5+ // NtotalGates 2
6+ // NAND2 1
7+ // OR2 1
8+
9+ module falsepath (A,B,G);
10+
11+ input A,B;
12+
13+ output G;
14+
15+ wire F;
16+
17+ nand NAND2_1 (F, A, B);
18+ nor OR2_1 (G, F, B);
19+
20+ endmodule
Original file line number Diff line number Diff line change @@ -121,7 +121,12 @@ void CurrentCircuit::topological_sort() {
121121 atpg_element.name = element.elementName ;
122122 // TODO: only NAND for testing
123123 if (element.isGate ()) {
124- atpg_element.type = ATPGCircuitElementType::NAND;
124+ if (element.elementType == CircuitElementType::NAND) {
125+ atpg_element.type = ATPGCircuitElementType::NAND;
126+ }
127+ if (element.elementType == CircuitElementType::NOR) {
128+ atpg_element.type = ATPGCircuitElementType::NOR;
129+ }
125130 } else {
126131 atpg_element.type = ATPGCircuitElementType::WIRE;
127132 }
You can’t perform that action at this time.
0 commit comments