blif中的模型是展平后的电路
一个blif文件可包含很多模型,以及对其他文件中的模型的引用
.model <decl-model-name>
.inputs <decl-input-list>
.outputs <decl-output-list>
.clock <decl-clock-list>
<command>
...
<command>
.end
一行中‘#‘之后的部分为注释
在没有注释的部分,‘\’斜杠符号表示连接两行
逻辑门将逻辑函数与模型中的信号相关联,也可作为其他逻辑函数的输入
.names <in-1> <in-2> ... <in-n> <output>
<single-output-cover>
.names v3 v6 j u78 v13.15
1--0 1
-1-1 1
0-11 1
在一行
每一行中的所有输入信号用\(and\)连接
再使用\(or\)连接所有行的输入
例:上述逻辑门可表示为
v13.15 = (v3 u78’) + (v6 u78) + (v3’ j u78)
将某个逻辑门赋予常值‘0‘
.names j
将某个逻辑门赋予常值‘1‘
.names j
1
置于模型最后,定义一个独立于该模型的网络
.exdc
.names <in-1> <in-2> ... <in-n> <output>
<single-output-cover>
表示一位存储或者状态信息
latch声明
.latch <input> <output> [<type> <control>] [<init-val>]
input是输入,output是输出
type是{fe, re, ah, al, as}中的一种,分别表示“falling edge,” “rising edge,” “active high,” “active low”, “asynchronous”.
control是latch的时钟信号,如果没有指定时钟信号,则跟随系统的全局时钟信号
init-val是latch的初始值,可以是{0,1,2,3},‘2‘表示don‘t care,‘3‘表示unknown,默认为‘3‘
例:简单时序电路
.inputs in
.outputs out
.latch out in 0
.names in out
0 1
.end
BLIF(Berkeley Logic Interchange Format )
原文:https://www.cnblogs.com/bacmive/p/14373475.html