BENCH is a text file format used for representing digital circuit netlists in a readable and simple manner. It is commonly used in academic and research contexts for logic synthesis, fault simulation, and testing digital circuits.
.bench
# symbol.# This is a commentINPUT.INPUT(G1)OUTPUT.OUTPUT(H1)AND, OR, NAND, NOR, XOR, XNOR, NOT, etc.AND(A1, G1, G2)NOT(B1, G1)# Full-Adder in BENCH Format INPUT(A) INPUT(B) INPUT(Cin) OUTPUT(Sum) OUTPUT(Cout) XOR(X1, A, B) AND(A1, A, B) XOR(Sum, X1, Cin) AND(A2, X1, Cin) OR(Cout, A1, A2)
# c17 in BENCH Format # 5 inputs # 2 outputs # 0 inverter # 6 gates ( 6 NANDs ) INPUT(1) INPUT(2) INPUT(3) INPUT(6) INPUT(7) OUTPUT(22) OUTPUT(23) 10 = NAND(1, 3) 11 = NAND(3, 6) 16 = NAND(2, 11) 19 = NAND(11, 7) 22 = NAND(10, 16) 23 = NAND(16, 19)