2011年5月17日

加法器

摘要: 使用环境:Quartus II 8.0 + DE2(Cyclone II EP2C35F627C6)1、半加器:代码:half_adder 1 module half_adder(ina,inb,sum_out,carry_out,clk,rst); 2 3 input ina; 4 input inb; 5 input clk; 6 input rst; 7 8 output sum_out; 9 output carry_out;10 11 reg sum_out;12 reg carry_out;13 14 always @(posedge clk or negedge rst)15 b 阅读全文

posted @ 2011-05-17 19:41 dpc525 阅读(426) 评论(0) 推荐(0)

导航