Vazifaning berilishi


Download 31.37 Kb.
Sana13.05.2023
Hajmi31.37 Kb.
#1457395
Bog'liq
6 amaliy ish natijasi


6.4 Hisobotga amaliy ish bo’yincha hisobot
Vazifaning berilishi: Mening varintim 6- shu sababli qo’yidagi formulada keltirilgan arifmetik tezlatgichni yarataman:

2 ta ko’paytirgich va 1 qo’shgich asosida
1) tanlangan MAX II EPM570T100C2 mikrosxemasining elemenlari(gate -ventel) soni cheklangaligi sababli qo’shgichni 16 xonali va ko’paytirgich esa kirishi 8 xonali chiqishi esa 16 qilamiz
2) qo’shgichni verilogda dasturini listingini keltiraman:
module addr(input wire signed [15:0] a, input wire signed [15:0] b,
output wire signed [15:0] s, output wire z,n,v,c);
//wire z,n,v,c;
assign {c,s} = a + b;
assign z = ~|s;
assign n = s[15];
assign v = a[15]^b[15]^s[15]^c;
endmodule
uni RTL dagi hosil qilingan sxemasi:

3) Ko’paytirgichni ham verilogda yaratamiz uning listingi va RTL chizmasi keltirilgan:

module MulS (input wire signed [7:0] a,b,output wire signed [15:0] result);
assign result = a*b;
endmodule


4)Энди берилган функцияни шу қўшгич ва кўпайтиргич билан амалга оширамиз:
module examp6(input wire signed [7:0] a,b,output wire signed [15:0] y,output wire z,n,v,c);
wire signed [15:0] ab;
wire signed [15:0] a2;
// assign y= a*b + a*a;
MulS myMul(.a(a),.b(b),.result(ab));
MulS myMul12(.a(a),.b(a),.result(a2));
addr myaddr(.a(ab),.b(a2),.s(y),.z(z),.n(n),.v(v),.c(c));
endmodule


Download 31.37 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling