Verification of Floating-Point Adders

Size: px
Start display at page:

Download "Verification of Floating-Point Adders"

Transcription

1 Verifiction of Floting-Point Adders Yirng-An Chen nd Rndl E. Brynt Computer cience Dept. Crnegie Mellon Univ. Pittsburgh PA Abstrct. The floting-point(fp) division bug in Intel s Pentium processor nd the overflow flg errtum of the FIT instruction in Intel s Pentium Pro nd Pentium II processor hve demonstrted the importnce nd the difficulty of verifying FP rithmetic circuits. In this pper we present the verifiction of FP dders with reusble specifictions using extended word-level MV which is improved by using the Multiplictive Power DDs (*PDDs) nd by incorporting conditionl symbolic simultion s well s short-circuiting technique. Bsed on the cse nlysis the specifictions of FP dders re divided into severl hundreds of implementtion-independent sub-specifictions. We pplied our system nd these specifictions to verify the IEEE double precision FP dder in the Auror III Chip t the University of Michign. Our system found severl design errors in this FP dder nd generted one counterexmple for ech error within severl minutes. A vrint of the corrected FP dder is creted to illustrte the cpbility of our system to hndle different FP dder designs. For ech of FP dders the verifiction tsk finished in 2 CPU hours on un UltrPARC-II server. 1 Introduction The floting-point (FP) division bug [7] in Intel s Pentium processor nd the overflow flg errtum of the FIT instruction (FP to integer conversion) [9] in Intel s Pentium Pro nd Pentium II processors hve demonstrted the importnce nd the difficulty of verifying FP rithmetic circuits nd the high cost of n rithmetic bug. FP dders re the most common units in FP processors. Modern high-speed FP dders [14 15] re very complicted becuse they require mny types of modules: right shifter for lignment left shifter for normliztion leding zero nticiptor (LZA) n dder for mntisss rounding unit etc. Exhustive simultion or forml verifiction cn be used to ensure the correctness of FP dders. Most of the IEEE FP stndrd hve been formlized by Crreño nd Miner [2] in the OL nd PV theorem provers. Theorem provers hve been used to verify rithmetic circuits [12]. owever theorem provers require users to mke use of detiled circuit knowledge nd the verifiction process for FP circuits is very tedious. Another drwbck of theorem provers is tht the proofs re implementtion-dependent. After the fmous Pentium division bug [7] Intel reserchers pplied word-level MV [6] with ybrid Decision Digrms (DDs) [5] to verify the functionlity of the FP unit in one of Intel s processors [4]. Due to the limittions of DDs the FP dder ws prtitioned into severl sub-circuits to be verified. The correctness of the overll circuit hd to be scertined mnully from the verified specifictions of the sub-circuits. This prtitioning pproch requires user interventions nd thus could be error prone. Moreover their specifictions re highly dependent on the circuit implementtions. This reserch is sponsored by the Defense Advnced Reserch Projects Agency (DARPA) under contrct number DABT63-96-C-0071.

2 The combintion of model checking nd theorem prover techniques ws used to verify IEEE double precision FP multiplier [1]. The circuit ws prtitioned into severl sub-circuits which cn be verified by model checking. The theorem prover hndled the completeness of the proofs by composing the verified specifictions. This pproch combines the strengths of both techniques. owever the proofs re still implementtiondependent. In this pper we present the verifiction of FP dders with reusble specifictions using extended word-level MV which is improved by using the Multiplictive Power DDs (*PDDs) [3] to represent the FP functions nd by incorporting conditionl symbolic simultion s well s short-circuiting technique. The specifictions of FP dders re divided into severl hundreds of sub-specifictions bsed on the signs nd the reltions of two exponents. These sub-specifictions re implementtion-independent since they use only the input nd output signls of FP dders. The concept of conditionl symbolic simultion is to perform the symbolic simultion of the circuit with some conditions to restrict the behvior of the circuit. This pproch cn be viewed s dynmiclly extrcting circuit behvior under the given conditions without modifying the ctul circuit. Cn we verify the specifictions of FP dders using conditionl forwrd simultion voiding ny use of circuit knowledge? We identify conflict of vrible orderings between the mntiss comprtor nd mntiss dder which cuses the BDD explosion in conditionl forwrd simultion. A short-circuiting technique to overcome this ordering conflict problem is presented nd integrted into word-level MV pckge. In generl this short-circuiting technique cn be used in the verifiction which only exercises prts of the circuits. We used our system nd these specifictions to verify the FP dder in the Auror III Chip [10] t the University of Michign. This FP dder is bsed on the design described in [14] nd supports IEEE double precision nd ll 4 IEEE rounding modes. In this verifiction work we verified the FP dder only in the round-to-nerest mode becuse we believe tht this is the most chllenging rounding mode for verifiction. Our system found severl design errors nd generted one counterexmple for ech error within severl minutes. A vrint of the corrected FP dder is creted nd verified to illustrte the cpbility of our system to hndle different FP dder designs. For ech of FP dders the verifiction tsk tkes 2 CPU hours for IEEE double precision. We believe tht our system nd specifictions cn be pplied to directly verify other FP dder designs nd to help finding design errors. The overflow flg errtum of the FIT instruction (FP to integer conversion) [9] in Intel s Pentium Pro nd Pentium II processors hs illustrted the importnce of verifiction of the conversion circuits which convert the dt from one formt to nother formt (e.g. IEEE single precision to double precision). ince these circuits re much simpler thn FP dders nd only hve one input opernd we believe tht our system cn be used to verify the correctness of these circuits. 2 Floting-Point Adders Let us consider the representtion of FP numbers by IEEE stndrd 754. Doubleprecision FP numbers re stored in 64 bits: 1 bit for the sign ( ) 11 bits for the exponent ( ) nd 52 bits for the mntiss ( ). The exponent is signed number represented with bis ( ) of The mntiss ( ) represents number less thn 1.

3 b 8 A E < Bsed on the vlue of the exponent the IEEE FP formt cn be divided into four cses: !#"$" 1 " /10 0 &%(')+* "- 05!#"$" -234%(')+* 1 & !#"$" 1 & 0 0 where : denotes Not--Number nd ; represents infinity. Let < 1. or 0.. Let be the number of mntiss bits including the bit on the left of the binry point nd > be number of exponent bits. For IEEE double precision 53 nd > 11.? * X * Tble 1. ummry of the FP ddition of two numbers of nd?. A represents the norml nd denorml numbers. * indictes FP invlid rithmetic opernds. Due to this encoding n opertion on two FP numbers cnnot be rewritten s n rithmetic function of two inputs. For exmple the ddition of two FP numbers F ( < ) nd G ( I < ) cn not be expressed s F + G becuse of specil cses when one of them is : or J;. Tble 1 summrizes the possible results of the FP ddition of two numbers F nd G where K represents normlized or denormlized number. The result cn be expressed s LMNO>QPIR-FT5GVU only when both opernds hve norml or denorml vlues. Otherwise the result is determined by the cse. When one opernd is ; nd the other is WX; the FP dder should rise the FP invlid rithmetic opernd exception. Figure 1. shows the block digrm of the NAP FP dder designed t tnford University [14]. As n lterntive to the NAP design the ones complementer fter the mntiss dder cn be voided if we ensure tht input Y (shown in Figure 1.) of the mntiss dder is smller thn or equl to input Z (shown in Figure 1.) when the exponent difference is 0 nd the opertion of mntiss dder is subtrction. To ensure this property mntiss comprtor nd extr circuits s shown in [15] re needed to swp the mntisss correctly. Figure 1.b shows vrint of the NAP FP dder with this modifiction (the compre unit is dded nd the ones complementer is deleted). This [ M \O:(]^ unit exists in mny modern high-speed FP dder designs [15] nd mkes the verifiction hrder described in ection 4.2. Figure 2 shows the detiled circuit of the compre unit which genertes the signl to swp the mntisss. The signl V 9 comes from the exponent subtrctor. When or nd < 1) Z is < (i.e. the mntisss re swpped). Otherwise Z is <. ` (i.e. 3 pecifictions of FP Adders In this section we focus on the generl specifictions of the FP dder especilly when both opernds hve denorml or norml vlues. For the cses in which t lest one of opernds is : or ; the specifictions cn be esily written t the bit level. For exmple when both opernds re : the expected output is c: (i.e. the exponent is ll 1s nd the mntiss is not equl to zero). The specifiction cn be expressed s the "AND" of the exponent output bits is 1 nd the "OR" of the mntiss output bits is 1.

4 F x y E x E y M x M y ubtrctor wp x y E x E y M x M y ign elect Exp. elect Encode MuxAbs Pth elect A Adder LZA Mux Right hift & ticky Bit C GR Exp. elect ign elect ubtrctor MuxAbs Pth elect Compre A Adder LZA Mux wp Right hift & ticky Bit C GR Ones Compl Encode Left hift Exp. Offset Exp. Adjust Left hift Fine Adjust Mux Exp. Offset Exp. Adjust Fine Adjust Mux out Eout Mout out Eout Mout () (b) Fig. 1. The tnford NAP FP dder () nd its vrint (b). M x < M y E x E y E x < E y d e And f Or h g Fig. 2. Detil circuit of the compre unit When both opernds hve norml or denorml vlues the idel specifiction is L MNI>QPIR-F G U. owever FP ddition hs exponentil complexity with the word size of the exponent prt for *PDDs. Thus the specifiction must be divided into severl sub-specifictions for verifiction. According to the signs of both opernds the function F G cn be rewritten s Eqution 1. imilrly for FP subtrction the function F W9G cn be lso rewritten s true ddition when both opernds hve different signs nd true subtrction when both opernds hve the sme sign. I R 2 F G RW 1U < < 2 U I R]NI^1:(P(P M>QU R 2 < W < 2 U R]NI^ N]: [ (1) M>QU 3.1 True Addition The *PDDs for the true ddition nd subtrction still grow exponentilly. Bsed on the sizes of the two exponents the function F G for true ddition cn be rewritten s: 9G RW 1U 2 R < 2 R&< R < R&< " U U &UU! where $# W #.

5 When the exponent is!" nd the mntiss is the sum of < nd < right shifted by bits (i.e. < in the eqution). # # W cn rnge from 0 to 2 W 2 but the number of mntiss bits in FP formt is only bits. M x M x M y M y L G R L G R M out M out () E x -E y <m (b) E x -E y >m Fig. 3. Cses of true ddition for the mntiss prt. Figure 3 illustrtes the possible cses of true ddition for bsed on the vlues of W. In Figure 3. for 0 W the intermedite (precise) result contins more thn bits. The right portion of the result contins L nd bits where is the lest significtion bit of the mntiss. The rounding mode will use these bits to perform the rounding nd generte the finl result(< ) in -bit formt. When W s shown in Figure 3.b the right shifted < only contributes to the intermedite result in the L nd bits. Depending the rounding mode the output mntiss will be < or < Therefore we only need one specifiction in ech rounding mode for the cses W. A similr nlysis cn be pplied to the cse. Thus the specifictions for true ddition with rounding cn be written s: " Y 1 LMNO>QPIR R W 1U 2 R&< R&< " &UU U 0 Y 2 LMNO>QPIRRW 1U 2 R&< R&< U UU " Y 3 LMNO>QPIR R W 1U 2 R < R < U UU 0 " Y 4 LMNO>QPIRRW 1U 2 R&< R < U UU where Y 1 Y 2 Y 3 nd Y 4 re YM>QP : P(P & YM>QP :(P(P & Y M>QP :(P(P & nd YM>QP :(P(P & respectively. YM>QP :(P(P represents the condition for true ddition nd exponent rnge (i.e. norml nd denorml numbers only). is composed from the outputs nd <. While building BDDs nd *PDDs for from the circuit the functionon left side of will be used to simplify the BDDs utomticlly by conditionl forwrd simultion. The number of specifictions for true ddition is 2 1. For instnce the vlue of for IEEE double precision is 53 thus the number of specifictions for true ddition is 107. ince the specifictions re very similr to one nother they cn be generted by looping construct in word-level MV. 3.2 True ubtrction The specifiction for true subtrction cn be divided into two cses: fr ( # # W 1) nd close ( W 01 or -1). For the fr cse the result of mntiss subtrction does not require mssive left shift (i.e. LZA is not ctive). imilr to the true ddition the specifictions for true subtrction cn be written s:

6 < W W W < < " Y 1 LMNO>QPIRRW 1U 2 R&< W R < &UU U 2 " Y 2 LMNI>QPORRW 1U 2 R&< R&< U UU Y 3 LMNO>QPIRRW 1U 2 R&< W R < U UU 2 " Y 4 LMNI>QPORRW 1U 2 R < W R < U U U where Y 1 Y 2 Y 3 nd Y 4 re YM>QP N & YM>QP N & YM>QP 4N & nd YM>QP 4N & respectively. YM>QP 4N represents the condition for true subtrction. For the close cse the difference of the two mntisss my generte some leding zeroes such tht normliztion is required to product result in IEEE formt. For exmple when W 0 < W < must be left shifted by W 1 bits to The number bits to left shift is computed in the Z circuit nd fed into the left shifter to perform normliztion nd into the subtrctor to djust the exponent. The number of bits to be left shifted rnges from 0 to nd is function of < nd <. The combintion of left shifting nd mntiss subtrction mke the *PDDs become irregulr nd grow exponentilly. Therefore the specifictions for these cses must be divided further to tke cre of the exponentil growth of *PDD sizes. Bsed on the number of leding zeroes in the intermedite result of mntiss subtrction the specifictions for the true subtrction close cse re divided s: " Y 1 L MNI>QPIR R W 1U 2 R&< R&< 1U U U 0 Y 2 L MNI>QPIR R W 1U 2 R < R&< 1UU U 0 Y 3 &U LMNI>QPIR RW 1U 2 R&< W < UU 1 Y 4 &U LMNI>QPIR RW 1U 2 R&< W < U U 1 where Y 1 Y 2 Y 3 nd Y 4 re YM>QP N & 1 & YM>QP 4N & 1 & YM>QP 4N & &< & nd YM>QP 4N & 1&< & respectively nd 4 represent the conditions tht the intermedite result hs leding zeroes to be left shifted nd " 4 re computed by 1 2 < WTR&< 1U < WTR&< 1U < W < 2 nd 2 < W < 2 ) respectively. A specil cse is tht the output is zero when is equl to nd < is equl to <. The specifiction is s follows: R YM>QP 4N & &< U pecifiction Coverge ince the specifictions of floting-point dders re split into severl hundred subspecifictions do these sub-specifictions cover the entire input spce? To nswer this question one might use theorem prover to check the cse splitting. In contrst we propose BDD pproch to compute the coverge of our specifictions. Our pproch is bsed on the observtion tht our specifictions re in the form " [ M>QP MN ^ \I^ [ ^ P ]^ N " nd [ M>QP is only dependent on the inputs of the circuits. Thus the union of the [ M>QP s of our specifictions which cn be computed by BDD opertions must be TRUE when our specifictions cover the entire input spce. In other words the union of the [ M>QP s cn be used to compute the percentge of input spce covered by our specifictions nd to generte the missing cses. 4 Verifiction ystem: Extended Word-Level MV with *PDDs To verify integer rithmetic circuits word-level MV [6] with DDs [5] extended MV [13] to hndle word level expressions in the specifiction formuls. For verific-

7 < tion of FP circuits we replced DDs in word-level MV with *PDDs nd introduced reltionl opertors for FP numbers. As in word-level MV only the word-level functions re represented by *PDDs nd the rest of the functions re represented by BDDs. 4.1 Conditionl ymbolic imultion We hve introduced conditionl symbolic simultion technique into word-level MV. ymbolic simultion performs the simultion with inputs hving symbolic vlues (i.e. Boolen vribles or Boolen functions). The simultion process builds BDDs for the circuits. If ech input is Boolen vrible this pproch my cuse the explosion of BDD sizes in the middle of the process becuse it tries to simulte the entire circuit for ll possible inputs t once. The concept of conditionl symbolic simultion is to perform the simultion process under restricted condition expressed s Boolen function over the inputs. In [11] Jin nd Goplkrishnn encoded the conditions together with the originl inputs s new inputs to the symbolic simultor using prmetric form of Boolen expressions but it is hrd to incorporte this pproch into word-level MV. Our pproch is to pply the conditions directly during the symbolic simultion process. Right fter building the BDD for circuit gte the condition is used to simplify the BDDs using the restrict [8] lgorithm. Then the simplified BDD is used s the input function for the gtes connected to this one. This process is repeted until the outputs re reched. This pproch cn be viewed s dynmiclly extrcting the circuit behvior under the specified condition without modifying the ctul circuit. 4.2 hort-circuiting Technique Cn we verify the specifictions of FP dders by conditionl forwrd simultion? In our experience ll specifictions for the FP dder design without mntiss comprtor s in Figure 1. cn be verified by conditionl forwrd simultion but not so for the FP dder contining mntiss comprtor s in Figure 1.b. This is cused by conflict of vrible orderings for the mntiss dder nd the mntiss comprtor which genertes the signl < (i.e. signl P in Figure 2). The best vrible ordering for the comprtor is to interleve the two vectors from the most significnt bit to the lest significnt bit (i.e ). Tble 2 shows the CPU time in seconds nd the BDD size of the signl P under different vrible orderings where ordering offset represents the number of bit offset from the best ordering. For exmple the ordering is when the ordering offset is 5. Clerly the BDD size grows exponentilly with the offset. In contrst to the comprtor the best ordering for the mntiss dder is when the exponent difference is. We observed tht the best ordering for the specifiction represented by *PDDs is the sme ordering s the best ordering for the mntiss dder. Thus the extended word-level MV cn not build the BDDs for both the mntiss comprtor nd mntiss dder by conditionl forwrd simultion when the exponent difference is lrge. Let us exmine the compre unit crefully. We find tht the signl P is used only when. In other words it is not necessry to build the BDDs for it when # # W is greter thn 0. Bsed on this fct we introduce short-circuiting technique to eliminte unnecessry computtions s erly s possible. The word-level MV nd *PDD pckges re modified to incorporte this technique. In the *PDD pckge

8 the BDD opertors such s And nd Or re modified to bort the opertion nd return specil token when the number of newly creted BDD nodes within this BDD cll is greter thn size threshold. In word-level MV for n And gte with two inputs if the first input evlutes 0 0 will be returned without building the BDDs for the second input. Otherwise the second input will be evluted. If the second input evlutes to 0 nd the first input evlutes to specil token 0 is returned. imilr technique is pplied to Or gtes with two inputs. Nnd(Nor) gtes cn be decomposed into Not nd And (Or) gtes nd use the sme technique to terminte erlier. For other logic gtes with two inputs the result is specil token if ny of the inputs evlutes to specil token. If the specil token is propgted to the output of the circuit then the size threshold is doubled nd the output is recomputed. This process is repeted until the output BDD is built. For exmple when the exponent difference is 30 the size threshold is the ordering is the best ordering of mntiss dder nd the evlution sequence of the compre unit shown in Figure 2 is P ^ nd b the vlues of signls P ^ nd b will be specil token nd 1 respectively by conditionl forwrd simultion. With these modifiction the new system cn verify ll of the specifictions for both types of FP dders by conditionl forwrd simultion. We believe tht this short-circuitingtechnique cn be generlized nd used in the verifiction which only exercises prt of the circuits. Ordering Offset BDD ize CPU Time (ec.) Tble 2. Performnce mesurements of 52-bit comprtor with different orderings. 5 Verifiction of FP Adders In this section we used the FP dder in the Auror III Chip [10] designed by Dr. uff s prt of his PhD disserttion t the University of Michign s n exmple to illustrte the verifiction of FP dders. This dder is bsed on the sme pproch s the NAP FP dder [14] t tnford University. Dr. uff found severl errors with the pproch described in [14]. This FP dder only hndles opernds with norml vlues. When the result is denorml vlue it is truncted to 0. This dder supports IEEE double precision formt nd the 4 IEEE rounding modes. In this verifiction work we verify the dder only in round to nerest mode becuse we believe tht the round to nerest mode is the hrdest one to verify. All experiments were crried out on un 248 Mz UltrPARC-II server with 1.5 GB memory. The FP dder is described in the Verilog lnguge in hierrchicl mnner. The circuit ws synthesized into flttened gte-level Verilog by Dr. John Zhong t GI. Then simple Perl script ws used to trnslte the circuit from gte-level Verilog to MV formt nd to perform ltch removl.

9 5.1 Ltch Removl uff s FP dder is pipelined two phse design with ltency of three clock cycles. We hndled the ltches during the trnsltion from gte-level Verilog to MV formt. Figure 4. shows the ltches in the pipelined two phse design. In the design phse 2 clock is the complement of the phse 1 clock. ince we only verify the functionl correctness of the design nd the FP dder does not hve ny feedbck loops the ltches cn be removed. One pproch is to direct connect the input of the ltch to the output of the ltch. This pproch will eliminte some logic circuits relted to the ltch enble signls s shown on the right side of the ltches in Figure 4.. With this pproch the correctness of these circuits cn not be checked. For exmple n design error in the circuit lwys generted 0s for the enble signls of ltches cn not be found if we use this pproch to remove the ltches. Ltch Logic Phse 1 clock And Logic Phse 1 clock Logic Logic Ltch Logic Phse 2 clock And Logic Phse 1 clock () Fig. 4. Ltch Removl. () The pipelined two phse design. (b) The design fter ltch removl. Our pproch for ltch removl is bsed on this observtion: the dt re written into the ltches when the enble signls re 1. To ensure the correctness of the circuits for the enble signls the ltches cn be replced by Z>QP gtes s shown in Figure 4.b without losing the functionl behvior of the circuit. ince phse 2 clock is the complement of the phse 1 clock we must replce the phse 2 clock by the phse 1 clock. Otherwise the circuit behvior will be incorrect. With this pproch we cn lso check the correctness of circuits for the enble signls of the ltches. 5.2 Design with Bugs During the verifiction process our system found severl design errors in uff s FP dder. These errors were not cught by rndom simultion performed by Dr. uff. The first error we found is the cse when Z Y Z Y nd the rounding logic decides to dd 1 to the lest significnt bit (i.e. the result should be Z Y 1) but the circuit design outputs A+C s the result. This error is cused by the incorrect logic in the pth select unit which ctegorized this cse s no shift cse insted of right shift by 1. While we were verifying the specifiction of true ddition our system generted counterexmple for this cse in round 50 seconds. To ensure tht this bug is not introduced by the trnsltion we hve used Cdence s Verilog simultion to verify this bug in the originl design by simulting the input pttern generted from our system. Another design error we found is in the sticky bit genertion. The sticky bit genertion is bsed on the tble given in pge 10 of Quch s pper describing the NAP FP (b)

10 dder [14]. The tble only hndles cses when the bsolute vlue of the exponent difference is less thn 54. The sticky bit is set 1 when the bsolute vlue of the exponent difference is greter thn 53 (for norml numbers only). The bug is tht the sticky bit is not lwys 1 when the bsolute vlue of the exponent difference is equl to 54. Figure 5 shows the sticky bit genertion when W 54. ince hs 52 bits the leding 1 will be the Round (L ) bit nd the sticky ( ) bit is the L of ll of bits which my be 0. Therefore n entry for the cse # # W 54 is needed in the tble of Quch s pper [14]. 1. N x 1. Ny L G R Fig. 5. ticky bit genertion when Corrected Designs After identifying the bugs we fixed the circuit in the MV formt. In ddition we creted nother FP dder by dding the compre unit in Figure 1.b into uff s FP dder. This new dder is equivlent to the FP dder in Figure 1.b since the ones complement unit will not be ctive t ny time. To verify the FP dders we combined the specifictions for both ddition nd subtrction instructions into the specifiction of true ddition nd subtrction. We use the sme specifictions to verify both FP dders. Tble 3 shows the CPU time in seconds nd the mximum memory required for the verifiction of both FP dders. The CPU time is the totl time for verifying ll specifictions. The FP dder II cn not be verified by conditionl forwrd simultion without the short-circuiting technique. The mximum memory is the mximum memory requirement of these 18 runs. For both FP dders the verifiction cn be done within two hours nd requires less thn 55 MB. Ech individul specifiction cn be verified in less thn 200 seconds. In our experience the decomposition type of the subtrhend s vribles for the true subtrction cses is very importnt to the verifiction time. For the true subtrction cses the best decomposition type of the subtrhend s vribles is negtive Dvio decomposition. If the subtrhend s vribles use the positive Dvio decomposition the *PDDs for cn not be built fter long CPU time (> 4 hours). CPU Time (ec.) Mx. Memory(MB) Cse FP dder I FP dder II FP dder I FP dder II True ddition True subtrction(fr) True subtrction (close) Tble 3. Performnce mesurements of verifiction of FP dders. FP dder I is uff s FP dder with bugs fixed. FP dder II is FP dder I with the compre unit in Figure 1.b. For true subtrction fr represent cses 1 nd close represent cses 1. For the coverge the verified specifictions cover 99.78% of the input spce for the FP dders in IEEE round-to-nerest mode. The reson for uncovered input spce (0.22%) is tht the circuit does not cused by the unimplemented fetures includes the cses of ny opernds with denorml : or ; vlues nd the cses of tht the result of the true subtrction is denorml vlue

11 Our results should not be compred with the results in [4] since the FP dders hndle difference precision nd the CPU performnce rtio of two different mchines is unknown. owever their pproch is implementtion-dependent while our pproch is implementtion-independent. 6 Conversion Circuits The overflow flg errtum of the FIT instruction(fp to integer conversion) [9] in Intel s Pentium Pro nd Pentium II processors hs illustrted the importnce of verifiction of conversion circuits [10] which convert the dt from one formt to nother. For exmple the MIP processor supports conversions between ny of the three number formts: integer IEEE single precision nd IEEE double precision. We believe tht the verifiction of the conversion circuits is much esier thn the verifiction of FP dders since these circuits re much simple thn FP dders nd only hve one opernd(i.e. less vribles thn FP dders). For exmple the specifiction of the double-to-single opertion which converts the dt from double precision to single precision cn be written s "(overflow flg expected overflow) & (not overflow flg (output expected output))" where overflow flg nd output re directly from the circuit nd expected overflow nd expected output re computed in terms of the inputs. This specifiction covers double precision which cnnot be represented in single precision. For exmple expected output is computed by LMNI>QPIR RW 1U < 2 U. imilrly expected overflow cn be computed from the inputs. For nother exmple the specifiction of the single-to-double opertion cn be written s "output input" since every number represented in single precision cn be represented in double precision without rounding(i.e. the output represents the exct vlue of input). 7 Conclusions nd Future Work We presented the verifiction of FP dders with reusble specifictions using extended word-level MV which were improved by using the Multiplictive Power DDs (*PDDs) nd by incorporting conditionl symbolic simultion s well s shortcircuiting technique. Bsed on the cse nlysis the specifictions of FP dders re divided into severl hundreds of implementtion-independent sub-specifictions. Conditionl forwrd simultion hs the dvntge of implementtion-independent specifictions. The short-circuiting technique mkes these specifictions reusble to ny implementtions of FP dders. We used our system nd reusble specifictions to verify FP dder from University of Michign. Our system found severl bugs in uff s FP dder nd generted counterexmples within severl minutes. A vrint of the corrected FP dder is creted nd verified to demonstrte the cpbility of our system to hndle different FP dder designs. For ech of FP dders the verifiction tsk finished in 2 CPU hours on un UltrPARC-II server for IEEE double precision. We believe tht our system nd specifictions cn be pplied to directly verify FP dders nd to help finding errors. The overflow flg errtum of the FIT instruction [9] in Intel s Pentium Pro nd Pentium II processors hs illustrted the importnce of verifiction of the conversion circuits which convert the dt from one formt to nother formt. ince these circuits re much simpler thn FP dders nd only hve one input opernd we believe tht our system cn be used to verify the correctness of these circuits. We pln to verify the conversion circuits in the Auror III chip.

12 % Acknowledgement We thnk Prof. Brown Dr. uff nd Mr. Riepe t University of Michign for providing us with uff s FP dder nd vluble discussions. We thnk Dr. John Zhong t GI for helping us to synthesize the FP dder into flttened gte-level Verilog. We lso thnk Bwolen Yng nd enry A. Rowley for proofreding this pper. References 1. AAGAARD M. D. AND EGER C.-J.. The forml verifiction of pipelined doubleprecision IEEE floting-point multiplier. In Proceedings of the Interntionl Conference on Computer-Aided Design (November 1995) pp CARRE O V. A. AND MINER P.. pecifiction of the IEEE-854 floting-point stndrd in OL nd PV. In igh Order Logic Theorem Proving nd Its Applictions (eptember 1995). 3. CEN Y.-A. AND BRYANT R. E. *PDD: An efficient grph representtion for floting point circuit verifiction. In Proceedings of the Interntionl Conference on Computer- Aided Design (November 1997) pp CEN Y.-A. CLARKE E. M. O P.-. OKOTE Y. KAM T. KAIRA M. O LEARY J. AND ZAO X. Verifiction of ll circuits in floting-point unit using word-level model checking. In Proceedings of the Forml Methods on Computer-Aided Design (November 1996) pp CLARKE E. M. FUJITA M. AND ZAO X. ybrid decision digrms overcoming the limittions of MTBDDs nd BMDs. In Proceedings of the Interntionl Conference on Computer-Aided Design (November 1995) pp CLARKE E. M. KAIRA M. AND ZAO X. Word level model checking Avoiding the Pentium FDIV error. In Proceedings of the 33rd ACM/IEEE Design Automtion Conference (June 1996) pp COE T. Inside the Pentium Fdiv bug. Dr. Dobbs Journl (April 1996) pp COUDERT O. AND MADRE J. C. A unified frmework for the forml verifiction of sequentil circuits. In Proceedingsof the Interntionl Conferenceon Computer-Aided Design (November 1990) pp FIER L. M. Flw reported in new intel chip. New York Times (My ) D 4: UFF T. R. Architecturl nd circuit issues for high clock rte floting-point processor. PhD Disserttion in Electricl Engineering Deprtment University of Michign (1995). 11. JAIN P. AND GOPALAKRINAN G. Efficient symbolic simultion-bsed verifiction using the prmetric form of boolen expressions. In IEEE Trnsctions on Computer-Aided Design of Integrted Circuits nd ystems (August 1994) pp LEEER M. AND O LEARY J. Verifiction of subtrctive rdix-2 squre root lgorithm nd implementtion. In Proceedings of 1995 IEEE Interntionl Conference on Computer Design: VLI in Computer nd Processors (October 1995) pp MCMILLAN K. L. ymbolic Model Checking. Kluwer Acdemic Publishers QUAC N. AND FLYNN M. Design nd implementtion of the NAP floting-point dder. Tech. Rep. CL-TR tnford University December UZUKI. MORINAKA. IROI MAKINO NAKAE Y. MAIKO K. AND UMI T. Leding-zero nticiptory logic for high-speed floting point ddition. IEEE Journl of olid-tte Circuits (August 1996) pp This rticle ws processed using the LAT E X mcro pckge with LLNC style

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single

More information

Questions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers?

Questions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers? Questions About Numbers Number Systems nd Arithmetic or Computers go to elementry school How do you represent negtive numbers? frctions? relly lrge numbers? relly smll numbers? How do you do rithmetic?

More information

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single

More information

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation Representtion of Numbers Number Representtion Computer represent ll numbers, other thn integers nd some frctions with imprecision. Numbers re stored in some pproximtion which cn be represented by fixed

More information

Verification of Floating-Point Adders??

Verification of Floating-Point Adders?? Verification of Floating-Point Adders?? Yirng-An Chen and Randal E. Bryant yachen+@cs.cmu.edu, bryant+@cs.cmu.edu Computer Science Dept., Carnegie Mellon Univ., Pittsburgh, PA 15213 Abstract. In this paper,

More information

Parallel Square and Cube Computations

Parallel Square and Cube Computations Prllel Squre nd Cube Computtions Albert A. Liddicot nd Michel J. Flynn Computer Systems Lbortory, Deprtment of Electricl Engineering Stnford University Gtes Building 5 Serr Mll, Stnford, CA 945, USA liddicot@stnford.edu

More information

Complete Coverage Path Planning of Mobile Robot Based on Dynamic Programming Algorithm Peng Zhou, Zhong-min Wang, Zhen-nan Li, Yang Li

Complete Coverage Path Planning of Mobile Robot Based on Dynamic Programming Algorithm Peng Zhou, Zhong-min Wang, Zhen-nan Li, Yang Li 2nd Interntionl Conference on Electronic & Mechnicl Engineering nd Informtion Technology (EMEIT-212) Complete Coverge Pth Plnning of Mobile Robot Bsed on Dynmic Progrmming Algorithm Peng Zhou, Zhong-min

More information

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) Numbers nd Opertions, Algebr, nd Functions 45. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) In sequence of terms involving eponentil growth, which the testing service lso clls geometric

More information

10.5 Graphing Quadratic Functions

10.5 Graphing Quadratic Functions 0.5 Grphing Qudrtic Functions Now tht we cn solve qudrtic equtions, we wnt to lern how to grph the function ssocited with the qudrtic eqution. We cll this the qudrtic function. Grphs of Qudrtic Functions

More information

Engineer To Engineer Note

Engineer To Engineer Note Engineer To Engineer Note EE-186 Technicl Notes on using Anlog Devices' DSP components nd development tools Contct our technicl support by phone: (800) ANALOG-D or e-mil: dsp.support@nlog.com Or visit

More information

A New Learning Algorithm for the MAXQ Hierarchical Reinforcement Learning Method

A New Learning Algorithm for the MAXQ Hierarchical Reinforcement Learning Method A New Lerning Algorithm for the MAXQ Hierrchicl Reinforcement Lerning Method Frzneh Mirzzdeh 1, Bbk Behsz 2, nd Hmid Beigy 1 1 Deprtment of Computer Engineering, Shrif University of Technology, Tehrn,

More information

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming Lecture 10 Evolutionry Computtion: Evolution strtegies nd genetic progrmming Evolution strtegies Genetic progrmming Summry Negnevitsky, Person Eduction, 2011 1 Evolution Strtegies Another pproch to simulting

More information

12-B FRACTIONS AND DECIMALS

12-B FRACTIONS AND DECIMALS -B Frctions nd Decimls. () If ll four integers were negtive, their product would be positive, nd so could not equl one of them. If ll four integers were positive, their product would be much greter thn

More information

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have Rndom Numers nd Monte Crlo Methods Rndom Numer Methods The integrtion methods discussed so fr ll re sed upon mking polynomil pproximtions to the integrnd. Another clss of numericl methods relies upon using

More information

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties, Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

Unit 5 Vocabulary. A function is a special relationship where each input has a single output.

Unit 5 Vocabulary. A function is a special relationship where each input has a single output. MODULE 3 Terms Definition Picture/Exmple/Nottion 1 Function Nottion Function nottion is n efficient nd effective wy to write functions of ll types. This nottion llows you to identify the input vlue with

More information

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem Announcements Project : erch It s live! Due 9/. trt erly nd sk questions. It s longer thn most! Need prtner? Come up fter clss or try Pizz ections: cn go to ny, ut hve priority in your own C 88: Artificil

More information

Midterm 2 Sample solution

Midterm 2 Sample solution Nme: Instructions Midterm 2 Smple solution CMSC 430 Introduction to Compilers Fll 2012 November 28, 2012 This exm contins 9 pges, including this one. Mke sure you hve ll the pges. Write your nme on the

More information

An Efficient Divide and Conquer Algorithm for Exact Hazard Free Logic Minimization

An Efficient Divide and Conquer Algorithm for Exact Hazard Free Logic Minimization An Efficient Divide nd Conquer Algorithm for Exct Hzrd Free Logic Minimiztion J.W.J.M. Rutten, M.R.C.M. Berkelr, C.A.J. vn Eijk, M.A.J. Kolsteren Eindhoven University of Technology Informtion nd Communiction

More information

Tool Vendor Perspectives SysML Thus Far

Tool Vendor Perspectives SysML Thus Far Frontiers 2008 Pnel Georgi Tec, 05-13-08 Tool Vendor Perspectives SysML Thus Fr Hns-Peter Hoffmnn, Ph.D Chief Systems Methodologist Telelogic, Systems & Softwre Modeling Business Unit Peter.Hoffmnn@telelogic.com

More information

Stack. A list whose end points are pointed by top and bottom

Stack. A list whose end points are pointed by top and bottom 4. Stck Stck A list whose end points re pointed by top nd bottom Insertion nd deletion tke plce t the top (cf: Wht is the difference between Stck nd Arry?) Bottom is constnt, but top grows nd shrinks!

More information

2 Computing all Intersections of a Set of Segments Line Segment Intersection

2 Computing all Intersections of a Set of Segments Line Segment Intersection 15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design

More information

A Formalism for Functionality Preserving System Level Transformations

A Formalism for Functionality Preserving System Level Transformations A Formlism for Functionlity Preserving System Level Trnsformtions Smr Abdi Dniel Gjski Center for Embedded Computer Systems UC Irvine Center for Embedded Computer Systems UC Irvine Irvine, CA 92697 Irvine,

More information

Abstract. 1 Introduction /04 $20.00 (c) 2004 IEEE

Abstract. 1 Introduction /04 $20.00 (c) 2004 IEEE rithmetic resoning in DPLL-bsed T solving Mrkus Wedler, Dominik toffel, Wolfgng Kunz Dept. of Electricl & Computer Eng., University of Kiserslutern/Germny emil: wedler@eit.uni-kl.de bstrct We propose new

More information

COMP 423 lecture 11 Jan. 28, 2008

COMP 423 lecture 11 Jan. 28, 2008 COMP 423 lecture 11 Jn. 28, 2008 Up to now, we hve looked t how some symols in n lphet occur more frequently thn others nd how we cn sve its y using code such tht the codewords for more frequently occuring

More information

Fig.25: the Role of LEX

Fig.25: the Role of LEX The Lnguge for Specifying Lexicl Anlyzer We shll now study how to uild lexicl nlyzer from specifiction of tokens in the form of list of regulr expressions The discussion centers round the design of n existing

More information

Fault injection attacks on cryptographic devices and countermeasures Part 2

Fault injection attacks on cryptographic devices and countermeasures Part 2 Fult injection ttcks on cryptogrphic devices nd countermesures Prt Isrel Koren Deprtment of Electricl nd Computer Engineering University of Msschusetts Amherst, MA Countermesures - Exmples Must first detect

More information

Theory of Computation CSE 105

Theory of Computation CSE 105 $ $ $ Theory of Computtion CSE 105 Regulr Lnguges Study Guide nd Homework I Homework I: Solutions to the following problems should be turned in clss on July 1, 1999. Instructions: Write your nswers clerly

More information

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

In the last lecture, we discussed how valid tokens may be specified by regular expressions. LECTURE 5 Scnning SYNTAX ANALYSIS We know from our previous lectures tht the process of verifying the syntx of the progrm is performed in two stges: Scnning: Identifying nd verifying tokens in progrm.

More information

Stack Manipulation. Other Issues. How about larger constants? Frame Pointer. PowerPC. Alternative Architectures

Stack Manipulation. Other Issues. How about larger constants? Frame Pointer. PowerPC. Alternative Architectures Other Issues Stck Mnipultion support for procedures (Refer to section 3.6), stcks, frmes, recursion mnipulting strings nd pointers linkers, loders, memory lyout Interrupts, exceptions, system clls nd conventions

More information

MATH 25 CLASS 5 NOTES, SEP

MATH 25 CLASS 5 NOTES, SEP MATH 25 CLASS 5 NOTES, SEP 30 2011 Contents 1. A brief diversion: reltively prime numbers 1 2. Lest common multiples 3 3. Finding ll solutions to x + by = c 4 Quick links to definitions/theorems Euclid

More information

Computing offsets of freeform curves using quadratic trigonometric splines

Computing offsets of freeform curves using quadratic trigonometric splines Computing offsets of freeform curves using qudrtic trigonometric splines JIULONG GU, JAE-DEUK YUN, YOONG-HO JUNG*, TAE-GYEONG KIM,JEONG-WOON LEE, BONG-JUN KIM School of Mechnicl Engineering Pusn Ntionl

More information

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1):

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1): Overview (): Before We Begin Administrtive detils Review some questions to consider Winter 2006 Imge Enhncement in the Sptil Domin: Bsics of Sptil Filtering, Smoothing Sptil Filters, Order Sttistics Filters

More information

Transparent neutral-element elimination in MPI reduction operations

Transparent neutral-element elimination in MPI reduction operations Trnsprent neutrl-element elimintion in MPI reduction opertions Jesper Lrsson Träff Deprtment of Scientific Computing University of Vienn Disclimer Exploiting repetition nd sprsity in input for reducing

More information

9 4. CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association

9 4. CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association 9. CISC - Curriculum & Instruction Steering Committee The Winning EQUATION A HIGH QUALITY MATHEMATICS PROFESSIONAL DEVELOPMENT PROGRAM FOR TEACHERS IN GRADES THROUGH ALGEBRA II STRAND: NUMBER SENSE: Rtionl

More information

Computer Arithmetic Logical, Integer Addition & Subtraction Chapter

Computer Arithmetic Logical, Integer Addition & Subtraction Chapter Computer Arithmetic Logicl, Integer Addition & Sutrction Chpter 3.-3.3 3.3 EEC7 FQ 25 MIPS Integer Representtion -it signed integers,, e.g., for numeric opertions 2 s s complement: one representtion for

More information

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search. CS 88: Artificil Intelligence Fll 00 Lecture : A* Serch 9//00 A* Serch rph Serch Tody Heuristic Design Dn Klein UC Berkeley Multiple slides from Sturt Russell or Andrew Moore Recp: Serch Exmple: Pncke

More information

CSE 401 Midterm Exam 11/5/10 Sample Solution

CSE 401 Midterm Exam 11/5/10 Sample Solution Question 1. egulr expressions (20 points) In the Ad Progrmming lnguge n integer constnt contins one or more digits, but it my lso contin embedded underscores. Any underscores must be preceded nd followed

More information

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits Systems I Logic Design I Topics Digitl logic Logic gtes Simple comintionl logic circuits Simple C sttement.. C = + ; Wht pieces of hrdwre do you think you might need? Storge - for vlues,, C Computtion

More information

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course L. Yroslvsky. Fundmentls of Digitl Imge Processing. Course 0555.330 Lecture. Imge enhncement.. Imge enhncement s n imge processing tsk. Clssifiction of imge enhncement methods Imge enhncement is processing

More information

ECEN 468 Advanced Logic Design Lecture 36: RTL Optimization

ECEN 468 Advanced Logic Design Lecture 36: RTL Optimization ECEN 468 Advnced Logic Design Lecture 36: RTL Optimiztion ECEN 468 Lecture 36 RTL Design Optimiztions nd Trdeoffs 6.5 While creting dtpth during RTL design, there re severl optimiztions nd trdeoffs, involving

More information

Basics of Logic Design Arithmetic Logic Unit (ALU)

Basics of Logic Design Arithmetic Logic Unit (ALU) Bsics of Logic Design Arithmetic Logic Unit (ALU) CPS 4 Lecture 9 Tody s Lecture Homework #3 Assigned Due Mrch 3 Project Groups ssigned & posted to lckord. Project Specifiction is on We Due April 9 Building

More information

UNIT 11. Query Optimization

UNIT 11. Query Optimization UNIT Query Optimiztion Contents Introduction to Query Optimiztion 2 The Optimiztion Process: An Overview 3 Optimiztion in System R 4 Optimiztion in INGRES 5 Implementing the Join Opertors Wei-Png Yng,

More information

COMMON HALF YEARLY EXAMINATION DECEMBER 2018

COMMON HALF YEARLY EXAMINATION DECEMBER 2018 li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net.pds.pds COMMON HALF YEARLY EXAMINATION DECEMBER 2018 STD : XI SUBJECT: COMPUTER SCIENCE

More information

5 Regular 4-Sided Composition

5 Regular 4-Sided Composition Xilinx-Lv User Guide 5 Regulr 4-Sided Composition This tutoril shows how regulr circuits with 4-sided elements cn be described in Lv. The type of regulr circuits tht re discussed in this tutoril re those

More information

x )Scales are the reciprocal of each other. e

x )Scales are the reciprocal of each other. e 9. Reciprocls A Complete Slide Rule Mnul - eville W Young Chpter 9 Further Applictions of the LL scles The LL (e x ) scles nd the corresponding LL 0 (e -x or Exmple : 0.244 4.. Set the hir line over 4.

More information

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014 CS DIGITAL LOGIC & STATE MACHINE DESIGN SPRING DUE : April 7, HOMEWOR V READ : Relted portions of Chpters III, IV, VI, VII nd VIII ASSIGNMENT : There re seven questions Solve ll homework nd exm problems

More information

Control-Flow Analysis and Loop Detection

Control-Flow Analysis and Loop Detection ! Control-Flow Anlysis nd Loop Detection!Lst time! PRE!Tody! Control-flow nlysis! Loops! Identifying loops using domintors! Reducibility! Using loop identifiction to identify induction vribles CS553 Lecture

More information

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork MA1008 Clculus nd Liner Algebr for Engineers Course Notes for Section B Stephen Wills Deprtment of Mthemtics University College Cork s.wills@ucc.ie http://euclid.ucc.ie/pges/stff/wills/teching/m1008/ma1008.html

More information

9 Graph Cutting Procedures

9 Graph Cutting Procedures 9 Grph Cutting Procedures Lst clss we begn looking t how to embed rbitrry metrics into distributions of trees, nd proved the following theorem due to Brtl (1996): Theorem 9.1 (Brtl (1996)) Given metric

More information

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών ΕΠΛ323 - Θωρία και Πρακτική Μταγλωττιστών Lecture 3 Lexicl Anlysis Elis Athnsopoulos elisthn@cs.ucy.c.cy Recognition of Tokens if expressions nd reltionl opertors if è if then è then else è else relop

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Overview. Network characteristics. Network architecture. Data dissemination. Network characteristics (cont d) Mobile computing and databases

Overview. Network characteristics. Network architecture. Data dissemination. Network characteristics (cont d) Mobile computing and databases Overview Mobile computing nd dtbses Generl issues in mobile dt mngement Dt dissemintion Dt consistency Loction dependent queries Interfces Detils of brodcst disks thlis klfigopoulos Network rchitecture

More information

Section 10.4 Hyperbolas

Section 10.4 Hyperbolas 66 Section 10.4 Hyperbols Objective : Definition of hyperbol & hyperbols centered t (0, 0). The third type of conic we will study is the hyperbol. It is defined in the sme mnner tht we defined the prbol

More information

Topic: Software Model Checking via Counter-Example Guided Abstraction Refinement. Having a BLAST with SLAM. Combining Strengths. SLAM Overview SLAM

Topic: Software Model Checking via Counter-Example Guided Abstraction Refinement. Having a BLAST with SLAM. Combining Strengths. SLAM Overview SLAM Hving BLAST with SLAM Topic: Softwre Model Checking vi Counter-Exmple Guided Abstrction Refinement There re esily two dozen SLAM/BLAST/MAGIC ppers; I will skim. # # Theorem Proving Combining Strengths

More information

2014 Haskell January Test Regular Expressions and Finite Automata

2014 Haskell January Test Regular Expressions and Finite Automata 0 Hskell Jnury Test Regulr Expressions nd Finite Automt This test comprises four prts nd the mximum mrk is 5. Prts I, II nd III re worth 3 of the 5 mrks vilble. The 0 Hskell Progrmming Prize will be wrded

More information

Accelerating 3D convolution using streaming architectures on FPGAs

Accelerating 3D convolution using streaming architectures on FPGAs Accelerting 3D convolution using streming rchitectures on FPGAs Hohun Fu, Robert G. Clpp, Oskr Mencer, nd Oliver Pell ABSTRACT We investigte FPGA rchitectures for ccelerting pplictions whose dominnt cost

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

10/9/2012. Operator is an operation performed over data at runtime. Arithmetic, Logical, Comparison, Assignment, Etc. Operators have precedence

10/9/2012. Operator is an operation performed over data at runtime. Arithmetic, Logical, Comparison, Assignment, Etc. Operators have precedence /9/22 P f Performing i Si Simple l Clcultions C l l ti with ith C#. Opertors in C# nd Opertor Precedence 2. Arithmetic Opertors 3. Logicl Opertors 4. Bitwise Opertors 5. Comprison Opertors 6. Assignment

More information

CMU Fall VLSI CAD

CMU Fall VLSI CAD CMU Fll 01 18-760 VLSI CAD [120 pts] Homework 2. Out Thu Sep 13, Due Thu Sep 27 01. 1. BDD ordering [10 pts] We sw tht vrible order is highly significnt for something s simple s multiplexor. How bout something

More information

Fig.1. Let a source of monochromatic light be incident on a slit of finite width a, as shown in Fig. 1.

Fig.1. Let a source of monochromatic light be incident on a slit of finite width a, as shown in Fig. 1. Answer on Question #5692, Physics, Optics Stte slient fetures of single slit Frunhofer diffrction pttern. The slit is verticl nd illuminted by point source. Also, obtin n expression for intensity distribution

More information

Digital Design. Chapter 6: Optimizations and Tradeoffs

Digital Design. Chapter 6: Optimizations and Tradeoffs Digitl Design Chpter 6: Optimiztions nd Trdeoffs Slides to ccompny the tetbook Digitl Design, with RTL Design, VHDL, nd Verilog, 2nd Edition, by Frnk Vhid, John Wiley nd Sons Publishers, 2. http://www.ddvhid.com

More information

A Comparison of the Discretization Approach for CST and Discretization Approach for VDM

A Comparison of the Discretization Approach for CST and Discretization Approach for VDM Interntionl Journl of Innovtive Reserch in Advnced Engineering (IJIRAE) Volume1 Issue1 (Mrch 2014) A Comprison of the Discretiztion Approch for CST nd Discretiztion Approch for VDM Omr A. A. Shib Fculty

More information

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1 Mth 33 Volume Stewrt 5.2 Geometry of integrls. In this section, we will lern how to compute volumes using integrls defined by slice nlysis. First, we recll from Clculus I how to compute res. Given the

More information

COMPUTER SCIENCE 123. Foundations of Computer Science. 6. Tuples

COMPUTER SCIENCE 123. Foundations of Computer Science. 6. Tuples COMPUTER SCIENCE 123 Foundtions of Computer Science 6. Tuples Summry: This lecture introduces tuples in Hskell. Reference: Thompson Sections 5.1 2 R.L. While, 2000 3 Tuples Most dt comes with structure

More information

Functor (1A) Young Won Lim 10/5/17

Functor (1A) Young Won Lim 10/5/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards A Tutology Checker loosely relted to Stålmrck s Algorithm y Mrtin Richrds mr@cl.cm.c.uk http://www.cl.cm.c.uk/users/mr/ University Computer Lortory New Museum Site Pemroke Street Cmridge, CB2 3QG Mrtin

More information

1 Quad-Edge Construction Operators

1 Quad-Edge Construction Operators CS48: Computer Grphics Hndout # Geometric Modeling Originl Hndout #5 Stnford University Tuesdy, 8 December 99 Originl Lecture #5: 9 November 99 Topics: Mnipultions with Qud-Edge Dt Structures Scribe: Mike

More information

Pointwise convergence need not behave well with respect to standard properties such as continuity.

Pointwise convergence need not behave well with respect to standard properties such as continuity. Chpter 3 Uniform Convergence Lecture 9 Sequences of functions re of gret importnce in mny res of pure nd pplied mthemtics, nd their properties cn often be studied in the context of metric spces, s in Exmples

More information

Exam #1 for Computer Simulation Spring 2005

Exam #1 for Computer Simulation Spring 2005 Exm # for Computer Simultion Spring 005 >>> SOLUTION

More information

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls Redings for Next Two Lectures Text CPSC 213 Switch Sttements, Understnding Pointers - 2nd ed: 3.6.7, 3.10-1st ed: 3.6.6, 3.11 Introduction to Computer Systems Unit 1f Dynmic Control Flow Polymorphism nd

More information

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. General Tree Search. Uniform Cost. Lecture 3: A* Search 9/4/2007

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. General Tree Search. Uniform Cost. Lecture 3: A* Search 9/4/2007 CS 88: Artificil Intelligence Fll 2007 Lecture : A* Serch 9/4/2007 Dn Klein UC Berkeley Mny slides over the course dpted from either Sturt Russell or Andrew Moore Announcements Sections: New section 06:

More information

CS 221: Artificial Intelligence Fall 2011

CS 221: Artificial Intelligence Fall 2011 CS 221: Artificil Intelligence Fll 2011 Lecture 2: Serch (Slides from Dn Klein, with help from Sturt Russell, Andrew Moore, Teg Grenger, Peter Norvig) Problem types! Fully observble, deterministic! single-belief-stte

More information

II. THE ALGORITHM. A. Depth Map Processing

II. THE ALGORITHM. A. Depth Map Processing Lerning Plnr Geometric Scene Context Using Stereo Vision Pul G. Bumstrck, Bryn D. Brudevold, nd Pul D. Reynolds {pbumstrck,brynb,pulr2}@stnford.edu CS229 Finl Project Report December 15, 2006 Abstrct A

More information

Functor (1A) Young Won Lim 8/2/17

Functor (1A) Young Won Lim 8/2/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of

More information

On the Detection of Step Edges in Algorithms Based on Gradient Vector Analysis

On the Detection of Step Edges in Algorithms Based on Gradient Vector Analysis On the Detection of Step Edges in Algorithms Bsed on Grdient Vector Anlysis A. Lrr6, E. Montseny Computer Engineering Dept. Universitt Rovir i Virgili Crreter de Slou sin 43006 Trrgon, Spin Emil: lrre@etse.urv.es

More information

What are suffix trees?

What are suffix trees? Suffix Trees 1 Wht re suffix trees? Allow lgorithm designers to store very lrge mount of informtion out strings while still keeping within liner spce Allow users to serch for new strings in the originl

More information

Digital Signal Processing: A Hardware-Based Approach

Digital Signal Processing: A Hardware-Based Approach Digitl Signl Processing: A Hrdwre-Bsed Approch Roert Esposito Electricl nd Computer Engineering Temple University troduction Teching Digitl Signl Processing (DSP) hs included the utilition of simultion

More information

Introduction to Computer Engineering EECS 203 dickrp/eecs203/ CMOS transmission gate (TG) TG example

Introduction to Computer Engineering EECS 203  dickrp/eecs203/ CMOS transmission gate (TG) TG example Introduction to Computer Engineering EECS 23 http://ziyng.eecs.northwestern.edu/ dickrp/eecs23/ CMOS trnsmission gte TG Instructor: Robert Dick Office: L477 Tech Emil: dickrp@northwestern.edu Phone: 847

More information

Stained Glass Design. Teaching Goals:

Stained Glass Design. Teaching Goals: Stined Glss Design Time required 45-90 minutes Teching Gols: 1. Students pply grphic methods to design vrious shpes on the plne.. Students pply geometric trnsformtions of grphs of functions in order to

More information

Inverting Martin Synthesis for Verification

Inverting Martin Synthesis for Verification Inverting Mrtin Synthesis for Verifiction Stephen Longfield, Jr., Rjit Mnohr School of Electricl nd omputer Engineering ornell University, Ithc, NY, 14853, U.S.A. Emil: {slongfield, rjit}@csl.cornell.edu

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Slides for Data Mining by I. H. Witten and E. Frank

Slides for Data Mining by I. H. Witten and E. Frank Slides for Dt Mining y I. H. Witten nd E. Frnk Simplicity first Simple lgorithms often work very well! There re mny kinds of simple structure, eg: One ttriute does ll the work All ttriutes contriute eqully

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

A Heuristic Approach for Discovering Reference Models by Mining Process Model Variants

A Heuristic Approach for Discovering Reference Models by Mining Process Model Variants A Heuristic Approch for Discovering Reference Models by Mining Process Model Vrints Chen Li 1, Mnfred Reichert 2, nd Andres Wombcher 3 1 Informtion System Group, University of Twente, The Netherlnds lic@cs.utwente.nl

More information

Presentation Martin Randers

Presentation Martin Randers Presenttion Mrtin Rnders Outline Introduction Algorithms Implementtion nd experiments Memory consumption Summry Introduction Introduction Evolution of species cn e modelled in trees Trees consist of nodes

More information

UT1553B BCRT True Dual-port Memory Interface

UT1553B BCRT True Dual-port Memory Interface UTMC APPICATION NOTE UT553B BCRT True Dul-port Memory Interfce INTRODUCTION The UTMC UT553B BCRT is monolithic CMOS integrted circuit tht provides comprehensive MI-STD- 553B Bus Controller nd Remote Terminl

More information

VATA: A Library for Efficient Manipulation of Non-Deterministic Tree Automata

VATA: A Library for Efficient Manipulation of Non-Deterministic Tree Automata VATA: A Librry for Efficient Mnipultion of Non-Deterministic Tree Automt Ondřej Lengál 1, Jiří Šimáček 1,2, nd Tomáš Vojnr 1 1 FIT, Brno University of Technology, IT4Innovtions Centre of Excellence, Czech

More information

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012 Dynmic Progrmming Andres Klppenecker [prtilly bsed on slides by Prof. Welch] 1 Dynmic Progrmming Optiml substructure An optiml solution to the problem contins within it optiml solutions to subproblems.

More information

Scanner Termination. Multi Character Lookahead. to its physical end. Most parsers require an end of file token. Lex and Jlex automatically create an

Scanner Termination. Multi Character Lookahead. to its physical end. Most parsers require an end of file token. Lex and Jlex automatically create an Scnner Termintion A scnner reds input chrcters nd prtitions them into tokens. Wht hppens when the end of the input file is reched? It my be useful to crete n Eof pseudo-chrcter when this occurs. In Jv,

More information

Engineer-to-Engineer Note

Engineer-to-Engineer Note Engineer-to-Engineer Note EE-270 Technicl notes on using Anlog Devices DSPs, processors nd development tools Contct our technicl support t processor.support@nlog.com nd dsptools.support@nlog.com Or visit

More information

Statistical classification of spatial relationships among mathematical symbols

Statistical classification of spatial relationships among mathematical symbols 2009 10th Interntionl Conference on Document Anlysis nd Recognition Sttisticl clssifiction of sptil reltionships mong mthemticl symbols Wl Aly, Seiichi Uchid Deprtment of Intelligent Systems, Kyushu University

More information

An introduction to model checking

An introduction to model checking An introduction to model checking Slide 1 University of Albert Edmonton July 3rd, 2002 Guy Trembly Dépt d informtique UQAM Outline Wht re forml specifiction nd verifiction methods? Slide 2 Wht is model

More information

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications.

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications. 15-112 Fll 2018 Midterm 1 October 11, 2018 Nme: Andrew ID: Recittion Section: ˆ You my not use ny books, notes, extr pper, or electronic devices during this exm. There should be nothing on your desk or

More information

Ver 1.2. Radiation Hardened Bidirectional Multipurpose Transceiver. Datasheet. Part Number:B54ACS164245SARH

Ver 1.2. Radiation Hardened Bidirectional Multipurpose Transceiver. Datasheet. Part Number:B54ACS164245SARH Ver 1.2 Rdition Hrdened Bidirectionl Multipurpose Trnsceiver Dtsheet Prt Number:B54ACS164245SARH 1 Pge of Revise Control Version No. Publish Time Revised Chpter Revise Introduction Note 1.1 2016-08-15

More information

Chapter 2 Sensitivity Analysis: Differential Calculus of Models

Chapter 2 Sensitivity Analysis: Differential Calculus of Models Chpter 2 Sensitivity Anlysis: Differentil Clculus of Models Abstrct Models in remote sensing nd in science nd engineering, in generl re, essentilly, functions of discrete model input prmeters, nd/or functionls

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

INTRODUCTION TO SIMPLICIAL COMPLEXES

INTRODUCTION TO SIMPLICIAL COMPLEXES INTRODUCTION TO SIMPLICIAL COMPLEXES CASEY KELLEHER AND ALESSANDRA PANTANO 0.1. Introduction. In this ctivity set we re going to introduce notion from Algebric Topology clled simplicil homology. The min

More information