赞
踩
摘要:Verilog中已有一些建立好的逻辑门和开关的模型。在所涉及的模块中,可通过实例引用这些门与开关模型,从而对模块进行结构化的描述。
- and (output,input,...)
-
- nand (output,input,...)
-
- or (output,input,...)
-
- nor (output,input,...)
-
- xor (output,input,...)
-
- xnor (output,input,...)
- buf (output,...,input)
-
- not (output,...,input)
- bufif0 (output,input,enable)
-
- bufif1 (output,input,enable)
-
- notif0 (output,input,enable)
-
- notif1 (output,input,enable)
- nmos (output,input,enable)
-
- pmos (output,input,enable)
-
- rnmos (output,input,enable)
-
- rpmos (output,input,enable)
- cmos (output,input,Nenable,Penable)
-
- rcmos (output,input,Nenable,Penable)
- tran (inout,inout2)
-
- rtran (inout,inout2)
- tranif0 (inout1,inout2,control)
-
- tranif1 (inout1,inout2,control)
-
- rtranif0 (inout1,inout2,control)
-
- rtranif1 (inout1,inout2,control)
- pullup (output)
-
- pulldown (output)
and | 0 | 1 | x | z |
0 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | x | x |
x | 0 | x | x | x |
z | 0 | x | x | x |
nand | 0 | 1 | x | z |
0 | 1 | 1 | 1 | 1 |
1 | 1 | 0 | x | x |
x | 1 | x | x | x |
z | 1 | x | x | x |
or | 0 | 1 | x | z |
0 | 0 | 1 | x | x |
1 | 1 | 1 | 1 | 1 |
x | x | 1 | x | x |
z | x | 1 | x | x |
nor | 0 | 1 | x | z |
0 | 1 | 0 | x | x |
1 | 0 | 0 | 0 | 0 |
x | x | 0 | x | x |
z | x | 0 | x | x |
xnor | 0 | 1 | x | z |
0 | 1 | 0 | x | x |
1 | 0 | 1 | x | x |
x | x | x | x | x |
z | x | x | x | x |
xor | 0 | 1 | x | z |
0 | 0 | 1 | x | x |
1 | 1 | 0 | x | x |
x | x | x | x | x |
z | x | x | x | x |
buf | not | |||
Input | Output | Input | Output | |
0 | 0 | 0 | 1 | |
1 | 1 | 1 | 0 | |
x | x | x | x | |
z | x | z | x |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。