The Berkeley Logic Interchange Format (BLIF) is a file format used for representing digital logic circuits. It is a versatile format that supports a wide range of logic synthesis and simulation applications. BLIF was developed at the University of California, Berkeley, and it has become a standard in the field of electronic design automation (EDA) for representing designs in a tool-independent manner.
.blif
.model
followed by the model name..model my_circuit
.inputs
and .outputs
..inputs a b c
and .outputs z
.gate
keyword or truth tables..gate AND a=b c
.latch
keyword..latch input_gate output_gate type
.end
..end
.gate
for standard gates or truth tables for custom logic..latch
for sequential elements..end
..end
to signify the end.# Full-Adder in BLIF format .model full_adder .inputs A B Cin .outputs Sum Cout .names A B X1 01 1 10 1 .names A B A1 11 1 .names X1 Cin Sum 01 1 10 1 .names X1 Cin A2 11 1 .names A1 A2 Cout 1- 1 -1 1 .end
# c17 in BLIF Format .model c17 .inputs 1GAT(0) 2GAT(1) 3GAT(2) 6GAT(3) 7GAT(4) .outputs 22GAT(10) 23GAT(9) .names 3GAT(2) 6GAT(3) 11GAT(5) 11 0 .names 1GAT(0) 3GAT(2) 10GAT(6) 11 0 .names 11GAT(5) 7GAT(4) 19GAT(7) 11 0 .names 2GAT(1) 11GAT(5) 16GAT(8) 11 0 .names 16GAT(8) 19GAT(7) 23GAT(9) 11 0 .names 10GAT(6) 16GAT(8) 22GAT(10) 11 0 .end