BLIF Format Manual

Introduction:

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.

File Extension:

.blif

Syntax:

  1. Model Declaration:
  2. Inputs and Outputs:
  3. Logic Gates:
  4. Latches:
  5. End Model:

Do's and Don'ts:

Example:

# 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