//: version "1.8.6" module soustr(); //: interface /sz:(40, 40) /bd:[ ] //: enddecls endmodule module additi(s, b, a); //: interface /sz:(40, 40) /bd:[ ] input [7:0] b; //: /sn:0 {0}(390,101)(438,101)(438,154)(334,154)(334,181){1} supply0 w0; //: /sn:0 {0}(342,195)(401,195)(401,219){1} output [7:0] s; //: /sn:0 {0}(326,294)(318,294)(318,210){1} input [7:0] a; //: /sn:0 {0}(168,100)(197,100)(197,154)(302,154)(302,181){1} wire w2; //: /sn:0 {0}(294,195)(200,195)(200,207)(210,207){1} //: enddecls led g4 (.I(w2)); //: @(217,207) /sn:0 /R:3 /w:[ 1 ] /type:0 //: output g3 (s) @(323,294) /sn:0 /w:[ 0 ] //: input g2 (b) @(388,101) /sn:0 /w:[ 0 ] //: input g1 (a) @(166,100) /sn:0 /w:[ 0 ] //: supply0 g5 (w0) @(401,225) /sn:0 /w:[ 1 ] add g0 (.A(a), .B(b), .S(s), .CI(w0), .CO(w2)); //: @(318,197) /sn:0 /w:[ 1 1 1 0 0 ] endmodule module multt(s, b, a); //: interface /sz:(40, 40) /bd:[ ] input [7:0] b; //: /sn:0 /dp:1 {0}(235,159)(235,122)(279,122)(279,97)(263,97){1} output [7:0] s; //: /sn:0 {0}(219,188)(219,271)(245,271){1} input [7:0] a; //: /sn:0 /dp:1 {0}(203,159)(203,124)(148,124)(148,97)(138,97){1} //: enddecls //: output g3 (s) @(242,271) /sn:0 /w:[ 1 ] mult g2 (.A(a), .B(b), .P(s)); //: @(219,175) /sn:0 /w:[ 0 0 0 ] //: input g1 (b) @(261,97) /sn:0 /w:[ 1 ] //: input g0 (a) @(136,97) /sn:0 /w:[ 1 ] endmodule module ual; //: root_module supply1 [8:0] w45; //: /sn:0 /dp:1 {0}(-156,686)(-156,696)(-169,696)(-169,678)(-163,678)(-163,647)(-99,647)(-99,642){1} supply0 w7; //: /sn:0 {0}(479,144)(479,133)(453,133){1} supply1 w14; //: /sn:0 {0}(363,178)(363,209)(408,209)(408,197)(423,197)(423,207){1} supply0 w0; //: /sn:0 /dp:1 {0}(436,364)(487,364)(487,394){1} supply1 w24; //: /sn:0 {0}(516,-26)(516,-4)(495,-4)(495,6){1} supply0 w25; //: /sn:0 {0}(444,-94)(444,-107)(431,-107)(431,-66){1} //: {2}(433,-64)(485,-64)(485,6){3} //: {4}(431,-62)(431,-61)(429,-61)(429,-56){5} //: {6}(431,-54)(475,-54)(475,6){7} //: {8}(429,-52)(429,-48){9} //: {10}(431,-46)(465,-46)(465,6){11} //: {12}(429,-44)(429,-36){13} //: {14}(431,-34)(455,-34)(455,6){15} //: {16}(429,-32)(429,-23){17} //: {18}(431,-21)(445,-21)(445,6){19} //: {20}(429,-19)(429,-18)(422,-18)(422,-14){21} //: {22}(424,-12)(435,-12)(435,6){23} //: {24}(422,-10)(422,-3)(425,-3)(425,6){25} supply0 w44; //: /sn:0 {0}(-107,628)(-137,628)(-137,613)(-146,613)(-146,598)(-161,598)(-161,608){1} supply0 w5; //: /sn:0 {0}(224,241)(224,231)(239,231)(239,275)(264,275){1} wire [7:0] w6; //: /sn:0 /dp:1 {0}(-45,444)(-24,444)(-24,475){1} wire w32; //: /sn:0 /dp:1 {0}(140,519)(179,519)(179,504)(180,504){1} //: {2}(184,504)(187,504){3} //: {4}(191,504)(195,504){5} //: {6}(199,504)(201,504){7} //: {8}(205,504)(207,504){9} //: {10}(211,504)(212,504){11} //: {12}(216,504)(218,504){13} //: {14}(222,504)(235,504){15} //: {16}(220,506)(220,589)(136,589){17} //: {18}(214,506)(214,579)(136,579){19} //: {20}(209,506)(209,569)(136,569){21} //: {22}(203,506)(203,559)(137,559){23} //: {24}(197,506)(197,549)(136,549){25} //: {26}(189,506)(189,539)(138,539){27} //: {28}(182,506)(182,529)(139,529){29} wire w61; //: /sn:0 /dp:1 {0}(86,659)(52,659)(52,661)(19,661){1} wire w46; //: /sn:0 /dp:1 {0}(136,564)(243,564){1} //: {2}(247,564)(274,564){3} //: {4}(245,562)(245,552){5} //: {6}(245,566)(245,686)(105,686){7} wire [8:0] w16; //: /sn:0 /dp:1 {0}(270,280)(394,280){1} //: {2}(396,278)(396,251)(487,251){3} //: {4}(396,282)(396,350){5} wire w4; //: /sn:0 /dp:1 {0}(251,504)(254,504){1} //: {2}(258,504)(261,504){3} //: {4}(265,504)(274,504){5} //: {6}(263,502)(263,484)(75,484)(75,631)(19,631){7} //: {8}(256,506)(256,621)(193,621){9} //: {10}(189,621)(186,621){11} //: {12}(182,621)(181,621){13} //: {14}(177,621)(176,621){15} //: {16}(172,621)(170,621){17} //: {18}(166,621)(161,621){19} //: {20}(157,621)(152,621){21} //: {22}(148,621)(143,621)(143,641)(109,641){23} //: {24}(150,623)(150,651)(108,651){25} //: {26}(159,623)(159,661)(107,661){27} //: {28}(168,623)(168,671)(105,671){29} //: {30}(174,623)(174,681)(106,681){31} //: {32}(179,623)(179,691)(105,691){33} //: {34}(184,623)(184,701)(105,701){35} //: {36}(191,623)(191,711)(105,711){37} wire [7:0] w15; //: /sn:0 /dp:1 {0}(445,119)(445,31)(460,31)(460,12){1} wire w19; //: /sn:0 {0}(-703,-375)(-638,-375)(-638,-408)(-615,-408){1} wire w38; //: /sn:0 {0}(-88,548)(-88,528)(-98,528)(-98,508)(-88,508){1} wire [7:0] w3; //: /sn:0 {0}(429,148)(429,197)(433,197)(433,207){1} wire w64; //: /sn:0 {0}(84,709)(51,709)(51,711)(19,711){1} wire w37; //: /sn:0 /dp:1 {0}(138,534)(236,534){1} //: {2}(240,534)(264,534)(264,534)(274,534){3} //: {4}(238,532)(238,522){5} //: {6}(238,536)(238,656)(107,656){7} wire w34; //: /sn:0 /dp:1 {0}(139,524)(230,524){1} //: {2}(234,524)(264,524)(264,524)(274,524){3} //: {4}(232,522)(232,512){5} //: {6}(232,526)(232,646)(108,646){7} wire w43; //: /sn:0 /dp:1 {0}(137,554)(241,554){1} //: {2}(245,554)(274,554){3} //: {4}(243,552)(243,542){5} //: {6}(243,556)(243,676)(106,676){7} wire [8:0] w21; //: /sn:0 {0}(280,544)(297,544)(297,436){1} //: {2}(299,434)(412,434)(412,379){3} //: {4}(295,434)(155,434)(155,424){5} wire w54; //: /sn:0 {0}(115,587)(37,587){1} wire w58; //: /sn:0 {0}(84,669)(51,669)(51,671)(19,671){1} wire w31; //: /sn:0 {0}(37,517)(119,517){1} wire w28; //: /sn:0 {0}(37,537)(117,537){1} wire [8:0] w41; //: /sn:0 {0}(-83,554)(-83,613){1} wire w23; //: /sn:0 {0}(84,699)(51,699)(51,701)(19,701){1} wire [7:0] w20; //: /sn:0 {0}(147,213)(147,285)(264,285){1} wire [8:0] w36; //: /sn:0 /dp:1 {0}(13,671)(-67,671)(-67,642){1} wire [7:0] w1; //: /sn:0 {0}(-575,-494)(-575,-458)(-578,-458)(-578,-423){1} wire w35; //: /sn:0 /dp:1 {0}(88,639)(53,639)(53,641)(19,641){1} wire w40; //: /sn:0 /dp:1 {0}(136,544)(238,544){1} //: {2}(242,544)(264,544)(264,544)(274,544){3} //: {4}(240,542)(240,532){5} //: {6}(240,546)(240,666)(105,666){7} wire [7:0] w8; //: /sn:0 /dp:1 {0}(324,109)(249,109)(249,73){1} wire w18; //: /sn:0 {0}(-691,-451)(-630,-451)(-630,-418)(-615,-418){1} wire w30; //: /sn:0 /dp:1 {0}(140,514)(225,514){1} //: {2}(229,514)(274,514){3} //: {4}(227,512)(227,502){5} //: {6}(227,516)(227,636)(109,636){7} wire w22; //: /sn:0 {0}(-59,628)(-25,628)(-25,614){1} wire w17; //: /sn:0 {0}(-539,-413)(-499,-413)(-499,-412)(-459,-412){1} wire w11; //: /sn:0 /dp:1 {0}(37,577)(115,577){1} wire w49; //: /sn:0 {0}(136,574)(247,574){1} //: {2}(251,574)(274,574){3} //: {4}(249,572)(249,562){5} //: {6}(249,576)(249,696)(105,696){7} wire [7:0] w2; //: /sn:0 {0}(-556,-310)(-556,-309)(-593,-309)(-593,-386)(-578,-386)(-578,-402){1} wire [8:0] w12; //: /sn:0 {0}(428,213)(428,265){1} //: {2}(430,267)(451,267)(451,218)(521,218){3} //: {4}(428,269)(428,350){5} wire [7:0] w10; //: /sn:0 {0}(340,109)(366,109){1} //: {2}(370,109)(413,109)(413,119){3} //: {4}(368,107)(368,54){5} wire w27; //: /sn:0 /dp:1 {0}(85,679)(52,679)(52,681)(19,681){1} wire w13; //: /sn:0 {0}(405,133)(378,133)(378,154)(363,154)(363,144){1} wire [7:0] w33; //: /sn:0 /dp:1 {0}(-27,496)(-27,522)(-78,522)(-78,548){1} wire w52; //: /sn:0 {0}(136,584)(250,584){1} //: {2}(254,584)(274,584){3} //: {4}(252,582)(252,572){5} //: {6}(252,586)(252,706)(105,706){7} wire w48; //: /sn:0 {0}(115,567)(37,567){1} wire [7:0] w47; //: /sn:0 {0}(-30,575)(-30,552)(-22,552){1} //: {2}(-18,552)(31,552){3} //: {4}(-20,550)(-20,540)(-22,540)(-22,496){5} wire w29; //: /sn:0 {0}(37,527)(118,527){1} wire w50; //: /sn:0 {0}(84,689)(51,689)(51,691)(19,691){1} wire w42; //: /sn:0 {0}(115,547)(37,547){1} wire w9; //: /sn:0 {0}(388,364)(348,364)(348,383)(333,383)(333,373){1} wire w39; //: /sn:0 /dp:1 {0}(87,649)(53,649)(53,651)(19,651){1} wire w26; //: /sn:0 {0}(37,557)(116,557){1} //: enddecls and g61 (.I0(w37), .I1(w4), .Z(w61)); //: @(96,659) /sn:0 /R:2 /w:[ 7 27 0 ] led g8 (.I(w21)); //: @(155,417) /sn:0 /w:[ 5 ] /type:1 //: joint g4 (w12) @(428, 267) /w:[ 2 1 -1 4 ] or g86 (.I0(w33), .I1(w47), .Z(w6)); //: @(-24,485) /sn:0 /R:1 /w:[ 0 5 1 ] and g58 (.I0(w43), .I1(w4), .Z(w27)); //: @(95,679) /sn:0 /R:2 /w:[ 7 31 0 ] and g55 (.I0(w30), .I1(w4), .Z(w35)); //: @(98,639) /sn:0 /R:2 /w:[ 7 23 0 ] //: joint g51 (w32) @(214, 504) /w:[ 12 -1 11 18 ] not g37 (.I(w4), .Z(w32)); //: @(245,504) /sn:0 /R:2 /w:[ 0 15 ] led g13 (.I(w10)); //: @(368,47) /sn:0 /w:[ 5 ] /type:1 register g3 (.Q(w1), .D(w2), .EN(w18), .CLR(w19), .CK(w17)); //: @(-578,-413) /sn:0 /R:2 /w:[ 1 1 1 1 0 ] //: supply0 g34 (w5) @(224,247) /sn:0 /w:[ 0 ] led g89 (.I(w6)); //: @(-52,444) /sn:0 /R:1 /w:[ 0 ] /type:1 //: joint g77 (w49) @(249, 574) /w:[ 2 4 1 6 ] //: joint g76 (w46) @(245, 564) /w:[ 2 4 1 6 ] //: joint g65 (w4) @(159, 621) /w:[ 19 -1 20 26 ] //: dip g2 (w20) @(147,203) /sn:0 /w:[ 0 ] /st:2 and g59 (.I0(w49), .I1(w4), .Z(w23)); //: @(94,699) /sn:0 /R:2 /w:[ 7 35 0 ] //: joint g72 (w34) @(232, 524) /w:[ 2 4 1 6 ] led g1 (.I(w1)); //: @(-575,-501) /sn:0 /w:[ 0 ] /type:1 //: joint g64 (w4) @(150, 621) /w:[ 21 -1 22 24 ] //: joint g16 (w10) @(368, 109) /w:[ 2 4 1 -1 ] led g11 (.I(w9)); //: @(333,366) /sn:0 /w:[ 1 ] /type:0 led g87 (.I(w38)); //: @(-81,508) /sn:0 /R:3 /w:[ 1 ] /type:0 //: joint g78 (w52) @(252, 584) /w:[ 2 4 1 6 ] //: joint g50 (w32) @(209, 504) /w:[ 10 -1 9 20 ] //: joint g28 (w25) @(429, -46) /w:[ 10 9 -1 12 ] //: supply0 g10 (w0) @(487,400) /sn:0 /w:[ 1 ] //: joint g27 (w25) @(429, -34) /w:[ 14 13 -1 16 ] //: supply0 g19 (w7) @(479,150) /sn:0 /w:[ 0 ] //: supply1 g32 (w14) @(374,178) /sn:0 /w:[ 0 ] //: joint g69 (w4) @(184, 621) /w:[ 11 -1 12 34 ] and g38 (.I0(w30), .I1(w32), .Z(w31)); //: @(129,517) /sn:0 /R:2 /w:[ 0 0 1 ] //: switch g6 (w19) @(-720,-375) /sn:0 /w:[ 0 ] /st:0 //: joint g75 (w43) @(243, 554) /w:[ 2 4 1 6 ] and g57 (.I0(w46), .I1(w4), .Z(w50)); //: @(94,689) /sn:0 /R:2 /w:[ 7 33 0 ] concat g53 (.I0(w54), .I1(w11), .I2(w48), .I3(w26), .I4(w42), .I5(w28), .I6(w29), .I7(w31), .Z(w47)); //: @(32,552) /sn:0 /R:2 /w:[ 1 0 1 0 1 0 0 0 3 ] /dr:1 add g9 (.A(w16), .B(w12), .S(w21), .CI(w0), .CO(w9)); //: @(412,366) /sn:0 /w:[ 5 5 3 0 0 ] clock g7 (.Z(w17)); //: @(-446,-411) /sn:0 /R:2 /w:[ 1 ] /omega:100 /phi:0 /duty:50 //: joint g71 (w30) @(227, 514) /w:[ 2 4 1 6 ] led g20 (.I(w13)); //: @(363,137) /sn:0 /w:[ 1 ] /type:0 add g15 (.A(w10), .B(w15), .S(w3), .CI(w7), .CO(w13)); //: @(429,135) /sn:0 /w:[ 3 0 0 1 0 ] concat g31 (.I0(w3), .I1(w14), .Z(w12)); //: @(428,212) /sn:0 /R:3 /w:[ 1 1 0 ] /dr:1 //: joint g68 (w4) @(179, 621) /w:[ 13 -1 14 32 ] //: joint g67 (w4) @(174, 621) /w:[ 15 -1 16 30 ] and g39 (.I0(w34), .I1(w32), .Z(w29)); //: @(128,527) /sn:0 /R:2 /w:[ 0 29 1 ] //: joint g48 (w32) @(197, 504) /w:[ 6 -1 5 24 ] and g43 (.I0(w46), .I1(w32), .Z(w48)); //: @(125,567) /sn:0 /R:2 /w:[ 0 21 0 ] //: joint g88 (w47) @(-20, 552) /w:[ 2 4 1 -1 ] //: joint g73 (w37) @(238, 534) /w:[ 2 4 1 6 ] and g62 (.I0(w52), .I1(w4), .Z(w64)); //: @(94,709) /sn:0 /R:2 /w:[ 7 37 0 ] led g17 (.I(w16)); //: @(494,251) /sn:0 /R:3 /w:[ 3 ] /type:1 //: joint g29 (w25) @(429, -54) /w:[ 6 5 -1 8 ] //: joint g25 (w25) @(422, -12) /w:[ 22 21 -1 24 ] //: joint g63 (w4) @(256, 504) /w:[ 2 -1 1 8 ] //: joint g52 (w32) @(220, 504) /w:[ 14 -1 13 16 ] and g42 (.I0(w43), .I1(w32), .Z(w26)); //: @(126,557) /sn:0 /R:2 /w:[ 0 23 1 ] concat g83 (.I0(w33), .I1(w38), .Z(w41)); //: @(-83,553) /sn:0 /R:3 /w:[ 1 0 0 ] /dr:1 //: joint g74 (w40) @(240, 544) /w:[ 2 4 1 6 ] and g56 (.I0(w34), .I1(w4), .Z(w39)); //: @(97,649) /sn:0 /R:2 /w:[ 7 25 0 ] not g14 (.I(w8), .Z(w10)); //: @(330,109) /sn:0 /w:[ 0 0 ] //: switch g5 (w18) @(-708,-451) /sn:0 /w:[ 0 ] /st:1 //: joint g47 (w32) @(189, 504) /w:[ 4 -1 3 26 ] and g44 (.I0(w49), .I1(w32), .Z(w11)); //: @(125,577) /sn:0 /R:2 /w:[ 0 19 1 ] concat g79 (.I0(w64), .I1(w23), .I2(w50), .I3(w27), .I4(w58), .I5(w61), .I6(w39), .I7(w35), .I8(w4), .Z(w36)); //: @(14,671) /sn:0 /R:2 /w:[ 1 1 1 1 1 1 1 1 7 0 ] /dr:1 //: joint g80 (w4) @(263, 504) /w:[ 4 6 3 -1 ] led g85 (.I(w22)); //: @(-25,607) /sn:0 /w:[ 1 ] /type:0 //: supply0 g84 (w44) @(-161,614) /sn:0 /w:[ 1 ] //: joint g36 (w21) @(297, 434) /w:[ 2 -1 4 1 ] //: supply0 g24 (w25) @(444,-88) /sn:0 /w:[ 0 ] led g21 (.I(w12)); //: @(528,218) /sn:0 /R:3 /w:[ 3 ] /type:1 and g41 (.I0(w40), .I1(w32), .Z(w42)); //: @(125,547) /sn:0 /R:2 /w:[ 0 25 0 ] //: supply1 g23 (w24) @(527,-26) /sn:0 /w:[ 0 ] and g60 (.I0(w40), .I1(w4), .Z(w58)); //: @(94,669) /sn:0 /R:2 /w:[ 7 29 0 ] led g54 (.I(w47)); //: @(-30,582) /sn:0 /R:2 /w:[ 0 ] /type:1 and g40 (.I0(w37), .I1(w32), .Z(w28)); //: @(127,537) /sn:0 /R:2 /w:[ 0 27 1 ] add g81 (.A(w36), .B(w45), .S(w41), .CI(w44), .CO(w22)); //: @(-83,626) /sn:0 /R:2 /w:[ 1 1 1 0 0 ] //: joint g70 (w4) @(191, 621) /w:[ 9 -1 10 36 ] //: joint g46 (w32) @(182, 504) /w:[ 2 -1 1 28 ] and g45 (.I0(w52), .I1(w32), .Z(w54)); //: @(125,587) /sn:0 /R:2 /w:[ 0 17 0 ] concat g35 (.I0(w52), .I1(w49), .I2(w46), .I3(w43), .I4(w40), .I5(w37), .I6(w34), .I7(w30), .I8(w4), .Z(w21)); //: @(279,544) /sn:0 /w:[ 3 3 3 3 3 3 3 3 5 0 ] /dr:0 //: joint g26 (w25) @(429, -21) /w:[ 18 17 -1 20 ] //: dip g0 (w2) @(-556,-320) /sn:0 /w:[ 0 ] /st:5 //: joint g22 (w16) @(396, 280) /w:[ -1 2 1 4 ] //: joint g66 (w4) @(168, 621) /w:[ 17 -1 18 28 ] //: supply1 g82 (w45) @(-145,686) /sn:0 /w:[ 0 ] concat g18 (.I0(w24), .I1(w25), .I2(w25), .I3(w25), .I4(w25), .I5(w25), .I6(w25), .I7(w25), .Z(w15)); //: @(460,11) /sn:0 /R:3 /w:[ 1 3 7 11 15 19 23 25 1 ] /dr:1 //: dip g12 (w8) @(249,63) /sn:0 /w:[ 1 ] /st:7 //: joint g30 (w25) @(431, -64) /w:[ 2 1 -1 4 ] concat g33 (.I0(w20), .I1(w5), .Z(w16)); //: @(269,280) /sn:0 /w:[ 1 1 0 ] /dr:0 //: joint g49 (w32) @(203, 504) /w:[ 8 -1 7 22 ] endmodule module regg(b, a, clear, lececr, h, c); //: interface /sz:(40, 40) /bd:[ ] input [1:0] b; //: /sn:0 {0}(-350,347)(-315,347)(-315,305)(-396,305){1} //: {2}(-398,303)(-398,43)(120,43)(120,67)(110,67){3} //: {4}(-398,307)(-398,440)(-279,440){5} input h; //: /sn:0 {0}(352,347)(358,347){1} //: {2}(360,345)(360,306)(350,306){3} //: {4}(360,349)(360,427){5} //: {6}(358,429)(313,429){7} //: {8}(360,431)(360,475){9} //: {10}(358,477)(277,477){11} //: {12}(360,479)(360,541)(226,541){13} input clear; //: /sn:0 {0}(276,352)(164,352)(164,353)(34,353){1} //: {2}(30,353)(15,353)(15,352)(-29,352){3} //: {4}(-33,352)(-73,352){5} //: {6}(-77,352)(-110,352)(-110,224)(-154,224){7} //: {8}(-75,354)(-75,546)(150,546){9} //: {10}(-31,354)(-31,482)(201,482){11} //: {12}(32,355)(32,434)(237,434){13} input lececr; //: /sn:0 {0}(-287,146)(-266,146)(-266,416){1} input [7:0] a; //: /sn:0 {0}(351,606)(362,606)(362,668)(315,668){1} //: {2}(313,666)(313,358){3} //: {4}(311,668)(276,668){5} //: {6}(274,666)(274,440){7} //: {8}(272,668)(240,668){9} //: {10}(238,666)(238,488){11} //: {12}(236,668)(187,668)(187,552){13} output [7:0] c; //: /sn:0 /dp:1 {0}(87,54)(87,39)(254,39){1} wire [7:0] w6; //: /sn:0 {0}(69,83)(69,122)(313,122)(313,337){1} wire w7; //: /sn:0 {0}(52,342)(276,342){1} wire w14; //: /sn:0 {0}(14,472)(-106,472)(-106,446)(-250,446){1} wire w4; //: /sn:0 {0}(36,342)(-123,342)(-123,422)(-250,422){1} wire w15; //: /sn:0 {0}(30,472)(201,472){1} wire [7:0] w0; //: /sn:0 {0}(238,467)(238,196)(93,196)(93,83){1} wire [7:0] w3; //: /sn:0 {0}(187,531)(187,88)(105,88)(105,83){1} wire w23; //: /sn:0 {0}(7,536)(-155,536)(-155,458)(-250,458){1} wire w24; //: /sn:0 {0}(23,536)(150,536){1} wire w11; //: /sn:0 {0}(-250,434)(-149,434)(-149,424)(37,424){1} wire w13; //: /sn:0 {0}(53,424)(237,424){1} wire [7:0] w9; //: /sn:0 {0}(81,83)(81,158)(274,158)(274,419){1} //: enddecls mux g4 (.I0(w6), .I1(w9), .I2(w0), .I3(w3), .S(b), .Z(c)); //: @(87,67) /sn:0 /R:2 /w:[ 0 0 1 1 3 0 ] demux g8 (.I(b), .E(lececr), .Z0(w4), .Z1(w11), .Z2(w14), .Z3(w23)); //: @(-266,440) /sn:0 /R:1 /w:[ 5 1 1 0 1 1 ] register g13 (.Q(w0), .D(a), .EN(w15), .CLR(clear), .CK(h)); //: @(238,477) /sn:0 /R:2 /w:[ 0 11 1 11 11 ] //: input g3 (b) @(-352,347) /sn:0 /w:[ 0 ] register g2 (.Q(w6), .D(a), .EN(w7), .CLR(clear), .CK(h)); //: @(313,347) /sn:0 /R:2 /w:[ 1 3 1 0 0 ] //: input g1 (a) @(349,606) /sn:0 /w:[ 0 ] //: joint g16 (clear) @(32, 353) /w:[ 1 -1 2 12 ] not g11 (.I(w4), .Z(w7)); //: @(42,342) /sn:0 /w:[ 0 0 ] //: input g10 (clear) @(-156,224) /sn:0 /w:[ 7 ] //: joint g27 (a) @(238, 668) /w:[ 9 10 12 -1 ] not g19 (.I(w11), .Z(w13)); //: @(43,424) /sn:0 /w:[ 1 0 ] //: joint g6 (b) @(-398, 305) /w:[ 1 2 -1 4 ] //: input g7 (lececr) @(-289,146) /sn:0 /w:[ 0 ] //: joint g20 (h) @(360, 347) /w:[ -1 2 1 4 ] //: input g15 (h) @(348,306) /sn:0 /w:[ 3 ] //: joint g17 (clear) @(-31, 352) /w:[ 3 -1 4 10 ] //: joint g25 (a) @(274, 668) /w:[ 5 6 8 -1 ] register g14 (.Q(w3), .D(a), .EN(w24), .CLR(clear), .CK(h)); //: @(187,541) /sn:0 /R:2 /w:[ 0 13 1 9 13 ] //: joint g5 (a) @(313, 668) /w:[ 1 2 4 -1 ] not g24 (.I(w14), .Z(w15)); //: @(20,472) /sn:0 /w:[ 0 0 ] //: joint g23 (h) @(360, 477) /w:[ -1 9 10 12 ] //: joint g22 (h) @(360, 429) /w:[ -1 5 6 8 ] not g26 (.I(w23), .Z(w24)); //: @(13,536) /sn:0 /w:[ 0 0 ] //: output g0 (c) @(251,39) /sn:0 /w:[ 1 ] //: joint g18 (clear) @(-75, 352) /w:[ 5 -1 6 8 ] register g12 (.Q(w9), .D(a), .EN(w13), .CLR(clear), .CK(h)); //: @(274,429) /sn:0 /R:2 /w:[ 1 7 1 13 7 ] endmodule module divv(s, b, a); //: interface /sz:(40, 40) /bd:[ ] input [7:0] b; //: /sn:0 /dp:1 {0}(330,296)(330,260)(397,260)(397,215)(387,215){1} output [7:0] s; //: /sn:0 {0}(256,410)(237,410)(237,341)(304,341)(304,325){1} input [7:0] a; //: /sn:0 /dp:1 {0}(298,296)(298,268)(251,268)(251,224)(241,224){1} wire [7:0] w7; //: /sn:0 {0}(324,325)(324,332){1} //: enddecls //: output g3 (s) @(253,410) /sn:0 /w:[ 0 ] //: input g2 (b) @(385,215) /sn:0 /w:[ 1 ] div g1 (.A(a), .B(b), .Q(w7), .R(s)); //: @(314,312) /sn:0 /w:[ 0 0 0 1 ] //: input g0 (a) @(239,224) /sn:0 /w:[ 1 ] endmodule