📄 bit4_2comp.v
字号:
//////////////////////////////////////////////////////////// module describe// name: 4-2 compressor(1 bit)// function: reduce the delay time for the add function// writer: zy// data: 2006/04/01// version: 1.0// feature: ////////////////////////////////////////////////////////// module bit4_2comp(a,b,c,d,x1_in,sum,x1_out,carry); input a; input b; input c; input d; input x1_in; output sum; output x1_out; output carry; reg sum; reg x1_out; reg carry; always @(a or b or c or d or x1_in) begin x1_out<=((a^b)&c)|(a&b); sum<=a^b^c^d^x1_in; carry<=((a^b^c^d)&x1_in)|((a^b^c)&d); endendmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -