F0203236
2014年11月17日 星期一
加法器(input:Cin,A,B;output:Cout,Sum)邏輯電路
縮短模組( assign sum;assign carry_out)
module adder1_behavorial (carry_out, sum, a, b, carry_in);
input a, b, carry_in;
output carry_out, sum;
assign sum = a^b^carry_in;
assign carry_out = a^b|carry_in|a|b;
endmodule
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言