verilog实例100多个

源代码在线查看: test_cla_8bits.v

软件大小: 186 K
上传用户: l991090150
关键词: verilog 100
下载地址: 免注册下载 普通下载 VIP

相关代码

				`include "cla_8bits.v"				module test_cla_8bits;								reg    [7:0]   m,n;				reg            cin;				wire   [7:0]   sum;				wire           cout;								cla_8bits tt (m,n,cin,cout,sum);								initial				  begin				  				  #40				  cin=  1;				  m  =  8'b10101100;				  n  =  8'b11010101;				  				  #40				  cin=  1;				  m  =  8'b10001111;				  n=    8'b10001111;				  				  #40 				  cin=  0;				  m  =  8'b01010101;				  n  =  8'b10101010;				  				  end				  				 always@(m or n or cin)				 begin				 #20				  $display("a=%b  b=%b  cin=%b  cout=%b  sum=%b",m,n,cin,cout,sum);				  end				  endmodule											

相关资源