📄 8x8multiplier.lis
字号:
mn8 8 q 0 0 nmos l=0.25u w='0.25u*2*m'
mn8 8 q 0 0 nmos l=0.25u w='0.25u*2*m'
mn9 8 mi 0 0 nmos l=0.25u w='0.25u*2*m'
mn9 8 mi 0 0 nmos l=0.25u w='0.25u*2*m'
.ends boothselector
.ends boothselector
.subckt not a a_ m=1
mp1 a_ a vdd vdd pmos l=0.25u w='0.25u*4*m'
mp1 a_ a vdd vdd pmos l=0.25u w='0.25u*4*m'
mn1 a_ a 0 0 nmos l=0.25u w='0.25u*2*m'
mn1 a_ a 0 0 nmos l=0.25u w='0.25u*2*m'
.ends not
.ends not
.subckt buffer x x_buff m=1 n=3
xnot1 x x_ not m=1
xnot1 x x_ not m=1
xnot2 x_ x_buff not n=1
xnot2 x_ x_buff not n=1
.ends buffer
.ends buffer
**########################################**
**########################################**
*** 8x8 multiplier design ***
**########################################**
*.subckt multipilier_10 a[8:1] b[8:1] p[16:1]
****a[8:1]->a_f[8:1]
****b[8:1]->b_f[8:1]
****p_f[16:1]->p[16:1]
xbuffer1 a1 a1_f buffer m=1 n=4
xbuffer2 a2 a2_f buffer m=1 n=4
xbuffer2 a2 a2_f buffer m=1 n=4
xbuffer3 a3 a3_f buffer m=1 n=4
xbuffer3 a3 a3_f buffer m=1 n=4
xbuffer4 a4 a4_f buffer m=1 n=4
xbuffer4 a4 a4_f buffer m=1 n=4
xbuffer5 a5 a5_f buffer m=1 n=4
xbuffer5 a5 a5_f buffer m=1 n=4
xbuffer6 a6 a6_f buffer m=1 n=4
xbuffer6 a6 a6_f buffer m=1 n=4
xbuffer7 a7 a7_f buffer m=1 n=4
xbuffer7 a7 a7_f buffer m=1 n=4
xbuffer8 a8 a8_f buffer m=1 n=4
xbuffer8 a8 a8_f buffer m=1 n=4
xbuffer10 b1 b1_f buffer m=1 n=4
xbuffer11 b2 b2_f buffer m=1 n=4
xbuffer11 b2 b2_f buffer m=1 n=4
xbuffer12 b3 b3_f buffer m=1 n=4
xbuffer12 b3 b3_f buffer m=1 n=4
xbuffer13 b4 b4_f buffer m=1 n=4
xbuffer13 b4 b4_f buffer m=1 n=4
xbuffer14 b5 b5_f buffer m=1 n=4
xbuffer14 b5 b5_f buffer m=1 n=4
xbuffer15 b6 b6_f buffer m=1 n=4
xbuffer15 b6 b6_f buffer m=1 n=4
xbuffer16 b7 b7_f buffer m=1 n=4
xbuffer16 b7 b7_f buffer m=1 n=4
xbuffer17 b8 b8_f buffer m=1 n=4
xbuffer17 b8 b8_f buffer m=1 n=4
xbuffer18 p1_f p1 buffer m=19 n=75
xbuffer19 p2_f p2 buffer m=19 n=75
xbuffer19 p2_f p2 buffer m=19 n=75
xbuffer20 p3_f p3 buffer m=19 n=75
xbuffer20 p3_f p3 buffer m=19 n=75
xbuffer21 p4_f p4 buffer m=19 n=75
xbuffer21 p4_f p4 buffer m=19 n=75
xbuffer22 p5_f p5 buffer m=19 n=75
xbuffer22 p5_f p5 buffer m=19 n=75
xbuffer23 p6_f p6 buffer m=19 n=75
xbuffer23 p6_f p6 buffer m=19 n=75
xbuffer24 p7_f p7 buffer m=19 n=75
xbuffer24 p7_f p7 buffer m=19 n=75
xbuffer25 p8_f p8 buffer m=19 n=75
xbuffer25 p8_f p8 buffer m=19 n=75
xbuffer26 p9_f p9 buffer m=19 n=75
xbuffer26 p9_f p9 buffer m=19 n=75
xbuffer27 p10_f p10 buffer m=19 n=75
xbuffer27 p10_f p10 buffer m=19 n=75
xbuffer28 p11_f p11 buffer m=19 n=75
xbuffer28 p11_f p11 buffer m=19 n=75
xbuffer29 p12_f p12 buffer m=19 n=75
xbuffer29 p12_f p12 buffer m=19 n=75
xbuffer30 p13_f p13 buffer m=19 n=75
xbuffer30 p13_f p13 buffer m=19 n=75
xbuffer31 p14_f p14 buffer m=19 n=75
xbuffer31 p14_f p14 buffer m=19 n=75
xbuffer32 p15_f p15 buffer m=19 n=75
xbuffer32 p15_f p15 buffer m=19 n=75
xbuffer33 p16_f p16 buffer m=19 n=75
xbuffer33 p16_f p16 buffer m=19 n=75
***********gernerate booth code*************
vb0 b0 0 0.0
xboothcoding1 b2_f b1_f b0 m1 y2_1 y1 boothcoding m=4
xboothcoding1 b2_f b1_f b0 m1 y2_1 y1 boothcoding m=4
xboothcoding2 b4_f b3_f b2_f m2 y2_2 y2 boothcoding m=4
xboothcoding2 b4_f b3_f b2_f m2 y2_2 y2 boothcoding m=4
xboothcoding3 b6_f b5_f b4_f m3 y2_3 y3 boothcoding m=4
xboothcoding3 b6_f b5_f b4_f m3 y2_3 y3 boothcoding m=4
xboothcoding4 b8_f b7_f b6_f m4 y2_4 y4 boothcoding m=4
xboothcoding4 b8_f b7_f b6_f m4 y2_4 y4 boothcoding m=4
***********gernerate part product***********
va0 a0 0 0.0
xboothselector1 a1_f a0 y1 y2_1 m1 pp11 boothselector m=2
xboothselector1 a1_f a0 y1 y2_1 m1 pp11 boothselector m=2
xboothselector2 a2_f a1_f y1 y2_1 m1 pp12 boothselector m=2
xboothselector2 a2_f a1_f y1 y2_1 m1 pp12 boothselector m=2
xboothselector3 a3_f a2_f y1 y2_1 m1 pp13 boothselector m=2
xboothselector3 a3_f a2_f y1 y2_1 m1 pp13 boothselector m=2
xboothselector4 a4_f a3_f y1 y2_1 m1 pp14 boothselector m=2
xboothselector4 a4_f a3_f y1 y2_1 m1 pp14 boothselector m=2
xboothselector5 a5_f a4_f y1 y2_1 m1 pp15 boothselector m=2
xboothselector5 a5_f a4_f y1 y2_1 m1 pp15 boothselector m=2
xboothselector6 a6_f a5_f y1 y2_1 m1 pp16 boothselector m=2
xboothselector6 a6_f a5_f y1 y2_1 m1 pp16 boothselector m=2
xboothselector7 a7_f a6_f y1 y2_1 m1 pp17 boothselector m=2
xboothselector7 a7_f a6_f y1 y2_1 m1 pp17 boothselector m=2
xboothselector8 a8_f a7_f y1 y2_1 m1 pp18 boothselector m=2
xboothselector8 a8_f a7_f y1 y2_1 m1 pp18 boothselector m=2
xboothselector9 a8_f a8_f y1 y2_1 m1 pp19 boothselector m=2
xboothselector9 a8_f a8_f y1 y2_1 m1 pp19 boothselector m=2
xboothselector10 a8_f a8_f y1 y2_1 m1 e1 boothselector m=2
xboothselector10 a8_f a8_f y1 y2_1 m1 e1 boothselector m=2
xnot1 e1 e1_ not m=1
xnot1 e1 e1_ not m=1
xboothselector11 a1_f a0 y2 y2_2 m2 pp21 boothselector m=2
xboothselector12 a2_f a1_f y2 y2_2 m2 pp22 boothselector m=2
xboothselector12 a2_f a1_f y2 y2_2 m2 pp22 boothselector m=2
xboothselector13 a3_f a2_f y2 y2_2 m2 pp23 boothselector m=2
xboothselector13 a3_f a2_f y2 y2_2 m2 pp23 boothselector m=2
xboothselector14 a4_f a3_f y2 y2_2 m2 pp24 boothselector m=2
xboothselector14 a4_f a3_f y2 y2_2 m2 pp24 boothselector m=2
xboothselector15 a5_f a4_f y2 y2_2 m2 pp25 boothselector m=2
xboothselector15 a5_f a4_f y2 y2_2 m2 pp25 boothselector m=2
xboothselector16 a6_f a5_f y2 y2_2 m2 pp26 boothselector m=2
xboothselector16 a6_f a5_f y2 y2_2 m2 pp26 boothselector m=2
xboothselector17 a7_f a6_f y2 y2_2 m2 pp27 boothselector m=2
xboothselector17 a7_f a6_f y2 y2_2 m2 pp27 boothselector m=2
xboothselector18 a8_f a7_f y2 y2_2 m2 pp28 boothselector m=2
xboothselector18 a8_f a7_f y2 y2_2 m2 pp28 boothselector m=2
xboothselector19 a8_f a8_f y2 y2_2 m2 pp29 boothselector m=2
xboothselector19 a8_f a8_f y2 y2_2 m2 pp29 boothselector m=2
xboothselector20 a8_f a8_f y2 y2_2 m2 e2 boothselector m=2
xboothselector20 a8_f a8_f y2 y2_2 m2 e2 boothselector m=2
xnot2 e2 e2_ not m=1
xnot2 e2 e2_ not m=1
xboothselector21 a1_f a0 y3 y2_3 m3 pp31 boothselector m=2
xboothselector22 a2_f a1_f y3 y2_3 m3 pp32 boothselector m=2
xboothselector22 a2_f a1_f y3 y2_3 m3 pp32 boothselector m=2
xboothselector23 a3_f a2_f y3 y2_3 m3 pp33 boothselector m=2
xboothselector23 a3_f a2_f y3 y2_3 m3 pp33 boothselector m=2
xboothselector24 a4_f a3_f y3 y2_3 m3 pp34 boothselector m=2
xboothselector24 a4_f a3_f y3 y2_3 m3 pp34 boothselector m=2
xboothselector25 a5_f a4_f y3 y2_3 m3 pp35 boothselector m=2
xboothselector25 a5_f a4_f y3 y2_3 m3 pp35 boothselector m=2
xboothselector26 a6_f a5_f y3 y2_3 m3 pp36 boothselector m=2
xboothselector26 a6_f a5_f y3 y2_3 m3 pp36 boothselector m=2
xboothselector27 a7_f a6_f y3 y2_3 m3 pp37 boothselector m=2
xboothselector27 a7_f a6_f y3 y2_3 m3 pp37 boothselector m=2
xboothselector28 a8_f a7_f y3 y2_3 m3 pp38 boothselector m=2
xboothselector28 a8_f a7_f y3 y2_3 m3 pp38 boothselector m=2
xboothselector29 a8_f a8_f y3 y2_3 m3 pp39 boothselector m=2
xboothselector29 a8_f a8_f y3 y2_3 m3 pp39 boothselector m=2
xboothselector30 a8_f a8_f y3 y2_3 m3 e3 boothselector m=2
xboothselector30 a8_f a8_f y3 y2_3 m3 e3 boothselector m=2
xnot3 e3 e3_ not m=1
xnot3 e3 e3_ not m=1
xboothselector31 a1_f a0 y4 y2_4 m4 pp41 boothselector m=2
xboothselector32 a2_f a1_f y4 y2_4 m4 pp42 boothselector m=2
xboothselector32 a2_f a1_f y4 y2_4 m4 pp42 boothselector m=2
xboothselector33 a3_f a2_f y4 y2_4 m4 pp43 boothselector m=2
xboothselector33 a3_f a2_f y4 y2_4 m4 pp43 boothselector m=2
xboothselector34 a4_f a3_f y4 y2_4 m4 pp44 boothselector m=2
xboothselector34 a4_f a3_f y4 y2_4 m4 pp44 boothselector m=2
xboothselector35 a5_f a4_f y4 y2_4 m4 pp45 boothselector m=2
xboothselector35 a5_f a4_f y4 y2_4 m4 pp45 boothselector m=2
xboothselector36 a6_f a5_f y4 y2_4 m4 pp46 boothselector m=2
xboothselector36 a6_f a5_f y4 y2_4 m4 pp46 boothselector m=2
xboothselector37 a7_f a6_f y4 y2_4 m4 pp47 boothselector m=2
xboothselector37 a7_f a6_f y4 y2_4 m4 pp47 boothselector m=2
xboothselector38 a8_f a7_f y4 y2_4 m4 pp48 boothselector m=2
xboothselector38 a8_f a7_f y4 y2_4 m4 pp48 boothselector m=2
xboothselector39 a8_f a8_f y4 y2_4 m4 pp49 boothselector m=2
xboothselector39 a8_f a8_f y4 y2_4 m4 pp49 boothselector m=2
xboothselector40 a8_f a8_f y4 y2_4 m4 e4 boothselector m=2
xboothselector40 a8_f a8_f y4 y2_4 m4 e4 boothselector m=2
xnot4 e4 e4_ not m=1
xnot4 e4 e4_ not m=1
vpower1 power 0 2.5
*********** wallace generate product ************
*********** wallace generate product ************
xhalf_adder1 pp11 m1 p1_f p2_1 half_adder m=4
xhalf_adder2 p2_1 pp12 p2_f p3_1 half_adder m=9
xhalf_adder2 p2_1 pp12 p2_f p3_1 half_adder m=9
xfull_adder3_1 pp13 pp21 m2 p3_2 p4_2 full_adder m=1
xfull_adder3_1 pp13 pp21 m2 p3_2 p4_2 full_adder m=1
xhalf_adder3_1 p3_1 p3_2 p3_f p4_1 half_adder m=21
xhalf_adder3_1 p3_1 p3_2 p3_f p4_1 half_adder m=21
xhalf_adder4_1 pp14 pp22 p4_3 p5_3 half_adder m=1
xfull_adder4_1 p4_1 p4_2 p4_3 p4_f p5_1 full_adder m=16
xfull_adder4_1 p4_1 p4_2 p4_3 p4_f p5_1 full_adder m=16
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -