BENCH Format Manual

Introduction:

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.

File Extension:

.bench

Syntax:

  1. Comments:
  2. Inputs:
  3. Outputs:
  4. Gates:
  5. Wire/Node Names:

Do's and Don'ts:

Example:

# 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)