Skip to content

Commit c1ce139

Browse files
author
xinoip
committed
testing with different circuit
1 parent 14ce379 commit c1ce139

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

currentcircuit.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)