亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? alu_32_bit.v

?? verilog 32-bit ALU
?? V
字號:
/* 


Gabe Rowe 


EE 471 


Lab #2 


32 bit ALU with Carry Look Ahead, and minimized logic on set less than and overflow. 


*/ 



module alu_32_bit(bus_a,bus_b,op_code,result_bus,zero_detect,overflow_detect,carryout); 


  input [31:0] bus_a, bus_b; 


  input [2:0] op_code; 


  output [31:0] result_bus; 


  output zero_detect,overflow_detect,carryout; 


  wire [15:0] p0,p1,g0,g1,ci0,ci1; 


  wire gnd=0; 
 
 


  set set0(bus_a[31],bmux31,ci1[15],set_less_than); 


   


  overflow overflow0(bus_a[31],bmux31,ci1[15],overflow_detect); 


   


  nor nor0(zero_detect,result_bus[31],result_bus[30],result_bus[29],result_bus[28],result_bus[27],result_bus[26],result_bus[25], 


                    result_bus[24],result_bus[23],result_bus[22],result_bus[21],result_bus[20],result_bus[19],result_bus[18], 


                    result_bus[17],result_bus[16],result_bus[15],result_bus[14],result_bus[13],result_bus[12],result_bus[11], 


                    result_bus[10],result_bus[9],result_bus[8],result_bus[7],result_bus[6],result_bus[5],result_bus[4], 


                    result_bus[3],result_bus[2],result_bus[1],result_bus[0]); 
 
 


  //These two 16 bit carry look ahead blocks make up a 32 bit carry lookahead block 


  cla_16_bit cla_16_bit0(op_code[2],p0,g0,ci0,gg0,pg0); 


  cla_16_bit cla_16_bit1(c16,p1,g1,ci1,gg1,pg1); 
 
 


  and #50 and0(pre_c16,pg0,op_code[2]); 


  and #50 and1(pre_c32_1,pg1,gg0); 


  and #50 and2(pre_c32_2,pg0,pg1,op_code[2]); 


  or #50 or0(c16,pre_c16,gg0); 


  or #50 or1(carryout,pre_c32_1,pre_c32_2,gg1); 
 
 


  alu_1_bit alu_1_bit0(bus_a[0],bus_b[0],op_code[2],op_code[2],{op_code[1],op_code[0]},set_less_than,p0[0],g0[0],bmux0,outsum0,result_bus[0]); 


  alu_1_bit alu_1_bit1(bus_a[1],bus_b[1],ci0[1],op_code[2],{op_code[1],op_code[0]},gnd,p0[1],g0[1],bmux1,outsum1,result_bus[1]); 


  alu_1_bit alu_1_bit2(bus_a[2],bus_b[2],ci0[2],op_code[2],{op_code[1],op_code[0]},gnd,p0[2],g0[2],bmux2,outsum2,result_bus[2]); 


  alu_1_bit alu_1_bit3(bus_a[3],bus_b[3],ci0[3],op_code[2],{op_code[1],op_code[0]},gnd,p0[3],g0[3],bmux3,outsum3,result_bus[3]); 


  alu_1_bit alu_1_bit4(bus_a[4],bus_b[4],ci0[4],op_code[2],{op_code[1],op_code[0]},gnd,p0[4],g0[4],bmux4,outsum4,result_bus[4]); 


  alu_1_bit alu_1_bit5(bus_a[5],bus_b[5],ci0[5],op_code[2],{op_code[1],op_code[0]},gnd,p0[5],g0[5],bmux5,outsum5,result_bus[5]); 


  alu_1_bit alu_1_bit6(bus_a[6],bus_b[6],ci0[6],op_code[2],{op_code[1],op_code[0]},gnd,p0[6],g0[6],bmux6,outsum6,result_bus[6]); 


  alu_1_bit alu_1_bit7(bus_a[7],bus_b[7],ci0[7],op_code[2],{op_code[1],op_code[0]},gnd,p0[7],g0[7],bmux7,outsum7,result_bus[7]); 


  alu_1_bit alu_1_bit8(bus_a[8],bus_b[8],ci0[8],op_code[2],{op_code[1],op_code[0]},gnd,p0[8],g0[8],bmux8,outsum8,result_bus[8]); 


  alu_1_bit alu_1_bit9(bus_a[9],bus_b[9],ci0[9],op_code[2],{op_code[1],op_code[0]},gnd,p0[9],g0[9],bmux9,outsum9,result_bus[9]); 


  alu_1_bit alu_1_bit10(bus_a[10],bus_b[10],ci0[10],op_code[2],{op_code[1],op_code[0]},gnd,p0[10],g0[10],bmux10,outsum10,result_bus[10]); 


  alu_1_bit alu_1_bit11(bus_a[11],bus_b[11],ci0[11],op_code[2],{op_code[1],op_code[0]},gnd,p0[11],g0[11],bmux11,outsum11,result_bus[11]); 


  alu_1_bit alu_1_bit12(bus_a[12],bus_b[12],ci0[12],op_code[2],{op_code[1],op_code[0]},gnd,p0[12],g0[12],bmux12,outsum12,result_bus[12]); 


  alu_1_bit alu_1_bit13(bus_a[13],bus_b[13],ci0[13],op_code[2],{op_code[1],op_code[0]},gnd,p0[13],g0[13],bmux13,outsum13,result_bus[13]); 


  alu_1_bit alu_1_bit14(bus_a[14],bus_b[14],ci0[14],op_code[2],{op_code[1],op_code[0]},gnd,p0[14],g0[14],bmux14,outsum14,result_bus[14]); 


  alu_1_bit alu_1_bit15(bus_a[15],bus_b[15],ci0[15],op_code[2],{op_code[1],op_code[0]},gnd,p0[15],g0[15],bmux15,outsum15,result_bus[15]); 


  alu_1_bit alu_1_bit16(bus_a[16],bus_b[16],c16,op_code[2],{op_code[1],op_code[0]},gnd,p1[0],g1[0],bmux16,outsum16,result_bus[16]); 


  alu_1_bit alu_1_bit17(bus_a[17],bus_b[17],ci1[1],op_code[2],{op_code[1],op_code[0]},gnd,p1[1],g1[1],bmux17,outsum17,result_bus[17]); 


  alu_1_bit alu_1_bit18(bus_a[18],bus_b[18],ci1[2],op_code[2],{op_code[1],op_code[0]},gnd,p1[2],g1[2],bmux18,outsum18,result_bus[18]); 


  alu_1_bit alu_1_bit19(bus_a[19],bus_b[19],ci1[3],op_code[2],{op_code[1],op_code[0]},gnd,p1[3],g1[3],bmux19,outsum19,result_bus[19]); 


  alu_1_bit alu_1_bit20(bus_a[20],bus_b[20],ci1[4],op_code[2],{op_code[1],op_code[0]},gnd,p1[4],g1[4],bmux20,outsum20,result_bus[20]); 


  alu_1_bit alu_1_bit21(bus_a[21],bus_b[21],ci1[5],op_code[2],{op_code[1],op_code[0]},gnd,p1[5],g1[5],bmux21,outsum21,result_bus[21]); 


  alu_1_bit alu_1_bit22(bus_a[22],bus_b[22],ci1[6],op_code[2],{op_code[1],op_code[0]},gnd,p1[6],g1[6],bmux22,outsum22,result_bus[22]); 


  alu_1_bit alu_1_bit23(bus_a[23],bus_b[23],ci1[7],op_code[2],{op_code[1],op_code[0]},gnd,p1[7],g1[7],bmux23,outsum23,result_bus[23]); 


  alu_1_bit alu_1_bit24(bus_a[24],bus_b[24],ci1[8],op_code[2],{op_code[1],op_code[0]},gnd,p1[8],g1[8],bmux24,outsum24,result_bus[24]); 


  alu_1_bit alu_1_bit25(bus_a[25],bus_b[25],ci1[9],op_code[2],{op_code[1],op_code[0]},gnd,p1[9],g1[9],bmux25,outsum25,result_bus[25]); 


  alu_1_bit alu_1_bit26(bus_a[26],bus_b[26],ci1[10],op_code[2],{op_code[1],op_code[0]},gnd,p1[10],g1[10],bmux26,outsum26,result_bus[26]); 


  alu_1_bit alu_1_bit27(bus_a[27],bus_b[27],ci1[11],op_code[2],{op_code[1],op_code[0]},gnd,p1[11],g1[11],bmux27,outsum27,result_bus[27]); 


  alu_1_bit alu_1_bit28(bus_a[28],bus_b[28],ci1[12],op_code[2],{op_code[1],op_code[0]},gnd,p1[12],g1[12],bmux28,outsum28,result_bus[28]); 


  alu_1_bit alu_1_bit29(bus_a[29],bus_b[29],ci1[13],op_code[2],{op_code[1],op_code[0]},gnd,p1[13],g1[13],bmux29,outsum29,result_bus[29]); 


  alu_1_bit alu_1_bit30(bus_a[30],bus_b[30],ci1[14],op_code[2],{op_code[1],op_code[0]},gnd,p1[14],g1[14],bmux30,outsum30,result_bus[30]); 


  alu_1_bit alu_1_bit31(bus_a[31],bus_b[31],ci1[15],op_code[2],{op_code[1],op_code[0]},gnd,p1[15],g1[15],bmux31,outsum31,result_bus[31]); 
 
 


endmodule 
 
 


module alu_1_bit(a,b,cin,binv,op,less,p,g,bmux,sum,result); 


  input [1:0] op; 


  input a,b,cin,binv,less; 


  output p,g,bmux,sum,result; 


  b_mux b_mux0(b,binv,bmux); 


  pfa pfa0(a,bmux,cin,g,p,sum); 


  mux_4_to_1 mux_4_to_1_0(op,g,p,sum,less,result); 


endmodule 
 
 


module pfa(a,b,cin,g,p,sum); 


  input a,b,cin; 


  output g,p,sum; 


  and #50 and0(g,a,b); 


  or #50 or0(p,a,b); 


  xor #50 xor0(sum,a,b,cin); 


endmodule 
 
 


module cla_16_bit(cin,p,g,ci,gg_out,pg_out); 


  input cin; 


  input [15:0] p,g; 


  output [15:0] ci; 


  output gg_out,pg_out; 


  wire [3:0] gg,pg,ci_main; 


  cla_4_bit cla_4_bit0(cin,{p[3],p[2],p[1],p[0]},{g[3],g[2],g[1],g[0]},ci[1],ci[2],ci[3],gg[0],pg[0]); 


  cla_4_bit cla_4_bit1(ci[4],{p[7],p[6],p[5],p[4]},{g[7],g[6],g[5],g[4]},ci[5],ci[6],ci[7],gg[1],pg[1]); 


  cla_4_bit cla_4_bit2(ci[8],{p[11],p[10],p[9],p[8]},{g[11],g[10],g[9],g[8]},ci[9],ci[10],ci[11],gg[2],pg[2]); 


  cla_4_bit cla_4_bit3(ci[12],{p[15],p[14],p[13],p[12]},{g[15],g[14],g[13],g[12]},ci[13],ci[14],ci[15],gg[3],pg[3]); 


  cla_4_bit cla_4_bit_main(cin,pg,gg,ci[4],ci[8],ci[12],gg_out,pg_out); 


endmodule 
 
 


module cla_4_bit(cin,p,g,c1,c2,c3,gg,pg); 


  input cin; 


  input [3:0] p,g; 


  output c1,c2,c3;  


  output gg,pg; 


  and #50 and0(c1_and0,p[0],cin); 


  and #50 and1(c2_and0,p[1],g[0]); 


  and #50 and2(c2_and1,p[1],p[0],cin); 


  and #50 and3(c3_and0,p[2],g[1]); 


  and #50 and4(c3_and1,p[2],p[1],g[0]); 


  and #50 and5(c3_and2,p[2],p[1],p[0],cin); 


  and #50 and6(c4_and0,p[3],g[2]); 


  and #50 and7(c4_and1,p[3],p[2],g[1]); 


  and #50 and8(c4_and2,p[3],p[2],p[1],g[0]); 


  and #50 and9(pg,p[3],p[2],p[1],p[0]); 


  or #50 or0(c1,g[0],c1_and0); 


  or #50 or1(c2,g[1],c2_and0,c2_and1); 


or #50 or2(c3,g[2],c3_and2,c3_and1,c3_and0); 


  or #50 or3(gg,g[3],c4_and2,c4_and1,c4_and0); 


endmodule 
 
 


module overflow(a,b,cin,overflow_detect); 


  input a,b,cin; 


  output overflow_detect; 


  not not0(not_a, a); 


  not not1(not_b, b); 


  not not2(not_cin, cin); 


  and #50 and0(and_a_b_not_cin,a,b,not_cin); 


  and #50 and1(and_not_a_not_b_cin,not_a,not_b,cin); 


  or #50 or0(overflow_detect,and_a_b_not_cin,and_not_a_not_b_cin); 


endmodule 
 
 


module set(a,b,cin,set_less_than); 


  input a,b,cin; 


  output set_less_than; 


  not not0(not_cin, cin); 


  and #50 and0(a_and_b,a,b); 


  and #50 and1(a_and_not_cin,a,not_cin); 


  and #50 and2(b_and_not_cin,b,not_cin); 


  or #50 or0(set_less_than,a_and_b,a_and_not_cin,b_and_not_cin); 


endmodule 
 
 


module mux_4_to_1(sel, in0, in1, in2, in3, out); 


  input [1:0] sel; 


  input in0, in1, in2, in3; 


  output out; 


  wire [1:0] not_sel; 


  not not0(not_sel[0], sel[0]); 


  not not1(not_sel[1], sel[1]); 


  and #50 and0(sel_in0, in0, not_sel[1], not_sel[0]); //00 


  and #50 and1(sel_in1, in1, not_sel[1], sel[0]); //01 


  and #50 and2(sel_in2, in2, sel[1], not_sel[0]); //10 


  and #50 and3(sel_in3, in3, sel[1], sel[0]); //11 


  or #50 or0(out, sel_in0, sel_in1, sel_in2, sel_in3); 


endmodule 
 
 


module b_mux(b, binv, bmux); 


  input b, binv; 


  output bmux; 


  xor #50 xor0(bmux, binv, b); 


endmodule 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩视频不卡| 99vv1com这只有精品| 91精品国产91久久久久久最新毛片 | 亚洲五月六月丁香激情| 欧美色视频在线观看| 全国精品久久少妇| 久久久久久久综合| 91免费国产视频网站| 亚洲女与黑人做爰| 欧美日韩一区二区三区高清| 日韩国产精品91| 久久综合999| 99久久精品免费| 日本欧美一区二区在线观看| 国产日韩精品一区二区三区| 色老汉一区二区三区| 久久成人综合网| 成人欧美一区二区三区| 欧美电影在线免费观看| 国产精品自拍av| 樱桃国产成人精品视频| 91精品国产免费| jlzzjlzz欧美大全| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美激情一区在线| 91精品啪在线观看国产60岁| 成人性生交大片免费看在线播放 | 一区在线播放视频| 欧美一级电影网站| 972aa.com艺术欧美| 免费观看一级特黄欧美大片| 日本一区二区成人在线| 欧美高清视频一二三区 | 亚洲一区二区三区四区五区中文| 日韩一级黄色大片| 91成人在线精品| 国产a久久麻豆| 人人狠狠综合久久亚洲| 综合激情网...| wwwwww.欧美系列| 欧美日韩在线电影| 99re亚洲国产精品| 国产主播一区二区| 蜜桃精品视频在线| 又紧又大又爽精品一区二区| 久久久一区二区三区| 欧美女孩性生活视频| 色综合久久久久综合| 懂色av一区二区三区免费看| 精品综合久久久久久8888| 亚洲一区二区四区蜜桃| 国产精品久久国产精麻豆99网站| 日韩欧美另类在线| 91精品欧美综合在线观看最新 | 波波电影院一区二区三区| 精品亚洲国产成人av制服丝袜| 亚洲夂夂婷婷色拍ww47| 亚洲丝袜另类动漫二区| 国产精品乱人伦一区二区| 久久久久99精品国产片| 亚洲精品一区在线观看| 日韩欧美国产电影| 91精品啪在线观看国产60岁| 欧美日韩大陆在线| 欧美性猛交xxxx黑人交| 在线影院国内精品| 欧美午夜精品电影| 欧美日韩一二区| 欧美日韩高清影院| 91精品黄色片免费大全| 91精品国模一区二区三区| 欧美二区乱c少妇| 日韩午夜av电影| 精品理论电影在线观看| 欧美电影免费观看高清完整版在线观看| 欧美日韩美少妇 | 日韩欧美一二三四区| 日韩一卡二卡三卡| 日韩视频一区二区三区| 日韩欧美区一区二| xnxx国产精品| 国产亲近乱来精品视频| 国产精品久久久久aaaa| 一区二区三区四区不卡视频| 亚洲一区二区三区四区中文字幕| 亚洲国产精品久久人人爱蜜臀 | 日本精品视频一区二区| 欧美影视一区在线| 欧美一区二区三区视频免费播放| 欧美成人一区二区三区片免费| 精品国产不卡一区二区三区| 久久精品欧美日韩| 综合精品久久久| 婷婷综合久久一区二区三区| 蜜乳av一区二区| 高清在线观看日韩| 在线视频欧美区| 日韩欧美一区二区三区在线| 久久久影院官网| 亚洲欧美电影院| 免费观看日韩av| 成人免费毛片app| 在线视频综合导航| 日韩精品中午字幕| 国产精品久久久久影院色老大| 一区二区三区中文免费| 毛片av一区二区| eeuss鲁片一区二区三区在线观看| 欧美午夜不卡视频| 久久精品视频在线免费观看| 亚洲精品老司机| 久久se这里有精品| 99久久综合国产精品| 91精品国产91热久久久做人人| 国产女人18水真多18精品一级做| 亚洲综合精品久久| 国产精品69久久久久水密桃| 日本久久电影网| 国产午夜精品理论片a级大结局| 亚洲精品视频观看| 国产精品小仙女| 欧美高清视频www夜色资源网| 欧美高清在线视频| 蜜臀av一区二区三区| 91网页版在线| 国产农村妇女毛片精品久久麻豆 | 成人免费在线播放视频| 麻豆精品久久精品色综合| 色婷婷激情一区二区三区| 久久久久一区二区三区四区| 亚洲一区二区在线视频| www.亚洲精品| 久久精品夜色噜噜亚洲a∨| 丝袜美腿高跟呻吟高潮一区| 99vv1com这只有精品| 国产三级一区二区三区| 久久99国产精品麻豆| 欧美色图免费看| 亚洲精品第一国产综合野| 成人福利视频在线看| 久久综合久久综合久久| 日韩影院精彩在线| 欧美视频在线播放| 亚洲精品写真福利| 成人午夜在线播放| 久久精品亚洲精品国产欧美| 麻豆一区二区三| 日韩一区二区影院| 日韩国产在线一| 欧美影视一区二区三区| 亚洲欧美电影一区二区| 北条麻妃一区二区三区| 欧美激情一区二区三区四区| 国产一区不卡视频| 精品少妇一区二区三区视频免付费 | 亚洲一区二区av电影| 92国产精品观看| 亚洲女性喷水在线观看一区| 成人v精品蜜桃久久一区| 国产午夜精品久久久久久免费视 | 91福利区一区二区三区| 亚洲精品亚洲人成人网| 91黄视频在线| 亚洲一区中文在线| 欧美美女激情18p| 日韩精彩视频在线观看| 91精品国产品国语在线不卡| 日韩电影在线看| 日韩片之四级片| 国产美女一区二区三区| 国产日产欧美一区| eeuss鲁一区二区三区| 亚洲四区在线观看| 欧美午夜寂寞影院| 天涯成人国产亚洲精品一区av| 欧美日韩精品二区第二页| 天天亚洲美女在线视频| 日韩欧美国产综合在线一区二区三区| 看电影不卡的网站| 久久久蜜桃精品| 91视频国产资源| 亚洲午夜精品在线| 欧美一卡二卡在线观看| 精品一区二区三区在线观看| 久久久国产精品麻豆| 97se狠狠狠综合亚洲狠狠| 亚洲国产成人av| 精品国产3级a| 99久久精品免费看国产免费软件| 一二三四社区欧美黄| 91精品国产综合久久精品app| 免费成人在线影院| 国产精品私房写真福利视频| 色先锋资源久久综合| 人妖欧美一区二区| 欧美激情综合五月色丁香| 欧美网站一区二区| 激情五月激情综合网| 国产精品色哟哟| 91精品国产入口|