Towards High-Level Specification & Synthesis of Dynamic Process Logic

Size: px
Start display at page:

Download "Towards High-Level Specification & Synthesis of Dynamic Process Logic"

Transcription

1 Towrds High-Level Specifiction & Synthesis of Dynmic Process Logic Oliver Diessel Usm Mlik Keith So George Milne School of Computer Science nd Engineering, The University of New South Wles, Austrli School of Computer Science & Softwre Engineering, The University of Western Austrli, Austrli

2 Overview Gols & chllenges of dynmic reconfigurtion Forml modelling of dynmic reconfigurtion A Circl primer FPGA implementtion of Circl An FPGA interpreter for Circl Ongoing work Conclusion

3 Architecturl reconfigurtion Definition:The bility of device or system rchitecture to chnge its structure over time Which structurl spects? Wht time scle? How controlled? NB: some structurl chnges my result in behviourl chnges

4 Dynmic reconfigurtion Aims to exploit rchitecturl reconfigurtion t run time in order to: Adpt to chnging lgorithmic needs s computtion progresses Improve ppliction/system performnce Reuse computtionl resources

5 Dynmic reconfigurtion Fcilittes nd supports Adptive processes Dynmic environments Hrdwre independence Multitsking

6 Reconfigurble computing chllenges How to design efficient, cost-effective rchitecturl mixes t device nd system level How to exploit operting niche How to support systems nd ppliction design Killer pps: finding ppel nd cceptnce

7 The design chllenge Designing with short led-times for short-lived, highlycustomized pplictions Skill bse needs to spn mny lyers nd dimensions of bstrction: from logic circuit to ppliction lyer E.g. conceiving high-performnce hrd-wired lgorithms Lck of integrted tools tht exploit hrdwre cpbilities

8 Forml modelling of dynmic reconfigurtion

9 Gol of project: Bsic lnguge reserch Discover semntic opertors needed to model sttic nd dynmic FPGA circuits Lern how to compile down to those opertors how much cn be utomted? Determine wht spects need to be expressed explicitly in the design lnguge in order to guide the compiler

10 Not nother lnguge The gol is NOT to design yet nother lnguge for reconfigurble computing. Rther, the gol is to identify the key requirements of such lnguge nd its compiler.

11 Our pproch Investigte the problem from forml modelling perspective we use process lgebr clled Circl to model circuits, their structure nd behviour

12 How cn Circl help? Circl provides mens of describing concurrent systems in n uncluttered, bstrct fshion Fcilittes discovery of fundmentl opertions, semntics, syntx Circl offers the possibility of producing circuits nd trnsltion schemes tht re verifibly correct (equivlent to their specifiction) Hope to mke use of forml methods literture

13 Circl bckground

14 Circl bckground Process lgebrs such s CCS, CSP, nd Circl (CIRcuit CALculus) ppered mid- to lte-1970s Mthemticl formlisms for describing & nlyzing the behviour of concurrent systems Allow behviourl specifiction, property checking, equivlence checking, forml verifiction

15 Allows us to reson bout processes tht hve stte, nd tht perform or respond to ctions Wht is Circl?

16 Wht is Circl? Allows us to reson bout processes tht hve stte, nd tht perform or respond to ctions For exmple, we might model chnge mchine using stte digrm Dollr CM 1 CM 2 CM 5 4Qtrs empty CM 3 CM 4

17 Modelling the user Dollr We my be interested to know: U 1 4Qtrs U 2 Wht is the composed behviour of the csh mchine nd the user? empty U 3 empty U 4 nger U 5 Will the user ever get ngry? PAs define the rules tht llow these nd other questions to be nswered

18 Circl bsics c P S b S U d c c Q P V b Q d d The Circl process lgebr supports hierrchicl, modulr, nd constructive description of intercting processes Processes re behviourl objects tht interct bsed on the occurrence of events b

19 Behviourl modelling in Circl Behviourl opertors

20 Behviourl modelling in Circl P 0 Behviourl opertors Process definition P P 0

21 Behviourl modelling in Circl P 0 Behviourl opertors Process definition Process termintion P P 0 P 0 Δ

22 Behviourl modelling in Circl P 0 P 1 Behviourl opertors Process definition Process termintion Process evolution P P 0 P 0 P 1

23 Behviourl modelling in Circl ( b) P 0 c P 1 Behviourl opertors Process definition Process termintion Process evolution Deterministic choice P P 0 P 0 P 1 + c P 1 + ( b) P 1 P 1 P 0

24 Structurl modelling in Circl ( b) c P 0 P 1 d Q 0 Q 1 b Structurl opertors Composition

25 Structurl modelling in Circl S P 0 Q 0 P 0 ( b) c P 1 Q 0 d b Q 1 Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 xq 0

26 Structurl modelling in Circl S P 0 Q 0 P 0 ( b) c P 1 Q 0 d b Q 1 Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 Q 0 c P 1 Q 0 P 0 xq 0 c P 1 xq 0

27 Structurl modelling in Circl S P 0 Q 0 P 0 ( b) c P 1 Q 0 d b Q 1 Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 Q 0 c P 1 Q 0 P 1 Q 0 P 0 Q 1 P 0 xq c 0 P 1 xq 0 P 0 xq 1

28 Structurl modelling in Circl ( b) P 0 c P 1 Q 0 d b Q 1 S P 0 Q 0 P 0 Q 0 c P 1 Q 0 P 1 Q 0 P 0 Q 1 P 0 Q 1 c P 1 Q 1 Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 xq 0 P 1 xq 1 c P 0 xq 1 c P 1 xq 0

29 Structurl modelling in Circl c P 0 P 1 d Q 0 Q 1 b S P 0 Q 0 P 0 Q 0 c P 1 Q 0 + d P 0 Q 1 + P 1 Q 1 + (c d) P 1 Q 1 P 1 Q 0 P 0 Q 1 + d P 1 Q 1 P 0 Q 1 c P 1 Q 1 P 1 Q 1 Δ ( b) Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 xq 0 d (c d) P 1 xq 1 c P 0 xq 1 c d P 1 xq 0

30 Structurl modelling in Circl c P 0 P 1 d Q 0 Q 1 b S P 0 Q 0 P 0 Q 0 c P 1 Q 0 + d P 0 Q 1 + P 1 Q 1 + (c d) P 1 Q 1 P 1 Q 0 P 0 Q 1 + d P 1 Q 1 P 0 Q 1 c P 1 Q 1 P 1 Q 1 Δ ( b) Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 xq 0 d (c d) P 1 xq 1 c P 0 xq 1 c d P 1 xq 0

31 Structurl modelling in Circl c P 0 P 1 d Q 0 Q 1 b S P 0 Q 0 P 0 Q 0 c P 1 Q 0 + d P 0 Q 1 + P 1 Q 1 + (c d) P 1 Q 1 P 1 Q 0 P 0 Q 1 + d P 1 Q 1 P 0 Q 1 c P 1 Q 1 P 1 Q 1 Δ ( b) Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 xq 0 d (c d) P 1 xq 1 c P 0 xq 1 c d P 1 xq 0

32 Structurl modelling in Circl c P 0 P 1 d Q 0 Q 1 b S P 0 Q 0 P 0 Q 0 c P 1 Q 0 + d P 0 Q 1 + P 1 Q 1 + (c d) P 1 Q 1 P 1 Q 0 P 0 Q 1 + d P 1 Q 1 P 0 Q 1 c P 1 Q 1 P 1 Q 1 Δ ( b) Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 xq 0 d (c d) P 1 xq 1 c P 0 xq 1 c d P 1 xq 0

33 Structurl modelling in Circl c P 0 P 1 d Q 0 Q 1 b S P 0 Q 0 P 0 Q 0 c P 1 Q 0 + d P 0 Q 1 + P 1 Q 1 + (c d) P 1 Q 1 P 1 Q 0 P 0 Q 1 + d P 1 Q 1 ( b) Structurl opertors Composition Evolve on shred events only when ech is independently ble to P 0 xq 0 (c d) P 1 xq 1 c c d P 1 xq 0 P 0 Q 1 c P 1 Q 1 P 1 Q 1 Δ (DEADLOCK) d P 0 xq 1

34 Structurl modelling in Circl i Q o i Q o Structurl opertors Composition Relbelling Similr to prmeteriztion Supports reuse

35 Structurl modelling in Circl i Q o i Q o Structurl opertors Composition Relbelling Similr to prmeteriztion Supports reuse S Q [c/o] Q [c/i] i Q Q o c

36 Structurl modelling in Circl b c ( b) P 0 c P 1 P P 0 P 0 P 1 + c P 1 + ( b) P 1 P 1 P 0 Structurl opertors Composition Relbelling Abstrction Hides events from observer

37 Structurl modelling in Circl b c b P 0 c P 1 P P 0 P 0 P 1 & c P 1 & b P 1 P 1 P 0 Structurl opertors Composition Relbelling Abstrction Hides events from observer Introduces nondeterministic behviour Limited use in HW description

38 Wht Circl hs been used for Modelling & verifying digitl (CMOS) circuits nd synchronous (micropipeline) systems Verifying the timing, performnce, nd correctness of concurrent systems Describing complex systems such s trffic networks using CA frmework

39 Circl s specifiction lnguge Success with using Circl for digitl design & verifiction led us to wonder: Is Circl suitble s the bsis of specifiction lnguge for FPGAs?

40 Question hs led to work on Mpping Circl specifictions to RL Automtic support for virtulized circuit designs Modelling DRL using PA formlism Determining wht tht provides us with

41 FPGA implementtion of Circl

42 Mpping gols Quick nd esy instntition of circuits Distribute computtion for sclbility Speedup through concurrent execution Use dynmic reconfigurtion to overcome resource limittions Provide scope for implementing dynmic specifictions

43 Circuit reliztion of Circl events P Q Z Process logic blocks request signls r s synch signl At the system level, Circl specifiction is relized s n interconnection of independent, concurrently ctive process logic blocks nd synchronistion logic

44 Circuit reliztion of Circl (cont) event bus select stte trnsition enble stte trnsition process stte events in process sort request signl r synch signl s Ech process logic block implements the behviour specified by its process definitions Of course the Circl composition lw constrins process stte trnsitions to those tht re globlly cceptble stte feedbck

45 Circuit ctivtion event bus select stte trnsition events in process sort request signl r Processes respond to input events ech cycle Stte renewl consists of three phses: enble stte trnsition process stte synch signl s stte feedbck

46 Circuit ctivtion (cont) event bus select stte trnsition enble stte trnsition process stte events in process sort request signl r synch signl s Processes respond to input events ech cycle Stte renewl consists of three phses: 1. Ech process checks whether the event is cceptble to itself stte feedbck

47 Circuit ctivtion (cont) event bus select stte trnsition enble stte trnsition process stte events in process sort request signl r synch signl s Processes respond to input events ech cycle Stte renewl consists of three phses: 1. Ech process checks whether the event is cceptble to itself nd rises synchroniztion request signl if it is; stte feedbck

48 Circuit ctivtion (cont) event bus select stte trnsition enble stte trnsition process stte events in process sort request signl r synch signl s 3 phse stte renewl: 1. Check event cceptbility; 2. Synchroniztion logic sserts synchroniztion signl if ll processes find the event cceptble; nd stte feedbck

49 Circuit ctivtion (cont) event bus select stte trnsition enble stte trnsition process stte events in process sort request signl r synch signl s 3 phse stte renewl: 1. Check event cceptbility; 2. Synchroniztion signl sserted; nd 3. Ech process enbles the stte trnsition gurded by the input event if synchroniztion is sserted. stte feedbck

50 Circuit ctivtion (cont) event bus select stte trnsition enble stte trnsition process stte stte feedbck events in process sort request signl r synch signl s 3 phse stte renewl: 1. Check event cceptbility; 2. Synchroniztion signl sserted; nd 3. Ech process enbles the stte trnsition gurded by the input event if synchroniztion is sserted. Stte is updted t the next clock edge

51 Design exmple Consider P P 0 P1 + ( b) 1 P 0 P 1 + cp 1 nd Q Q 0 1 Q bq dq 1 P 0 P 1, ( b), c, d Q 0 Q 1 Applying the Circl composition lw we get b P P P P Q Q Q Q P1 Q P0 Q cp1 Q Δ dp 1 Q Q cp1 0 ( cd ) 1 + P 1 Q 1 + dp 0 Q 1

52 Stte renewl phse 1: Determining whether n event combintion is vlid Consider just the logic for process P: P P1 In stte P 0 the process responds to events in the set P 1 + ( b ) P 0 P 1 + cp { b c,bc,b c,b c}. 1 Hence process P in stte P 0 ccepts the boolen expression of events ( bc + bc + bc + bc). Similrly, in stte P 1, the process ccepts ( bc + bc). The synchroniztion request signl cn thus be expressed s... r P = ( bc + bc + bc + bc ). P0 + ( bc + bc ). P1.

53 Stte renewl phse 2: Checking globl cceptbility of n event Done by forming the globl conjunction of process synchroniztion request signls: s = i r i

54 Stte renewl phse 3: Allowing stte trnsitions Let DP 0 nd DP 1 denote the boolen input functions for the P 0 nd P 1 stte flip-flops Then from P P 0 P1 + ( b) 1 P 0 P 1 + cp 1 we cn derive D D P P 0 1 = s.( bc. P1 = s.([ bc + + bc. P0 ) + s. P0 bc + bc]. P + 0 bc. P 1 ) + s. P 1

55 Schemtic for P*Q

56 Automtic plce & route of flt design

57 Module Genertors 1. Environmentl Inputs: EI(tlc, tlr, ni, or, ob); - consists of input register nd wires to right nd bottom - specified by coords of top left corner, number of inputs, nd vector of wires to right & bottom

58 Module Genertors 2. Buses: B(tlc, tlr, wi, hi, or, w); - specified by coords of top left corner, width nd height, orienttion, nd vector of ctive wires

59 Module Genertors 3. Input Junctions: IJ(tlc, tlr, wi, or, ob); - llows nother process to be dded - specified by coords of top left corner, width, nd vector of outputs to right nd bottom

60 Module Genertors 4. Minterms: M(tlc, tlr, ni, mn); - computes minterm, psses input to right nd output to bottom - specified by coords of top left corner, number of inputs, nd minterm number

61 - specified by coords of top left corner, width, nd vectors of ctive inputs, inputs to be ORed, nd inputs to be output below Module Genertors 5. Gurds: G(tlc, tlr, wi, i, g, o); - forms OR of selected minterm wires with output to right

62 - specified top left corner, height, nd vectors of throughputs ( ), stte selectors ( ), nd requestors Module Genertors 6. Requestors: R(tlc, tlr, hi, tp, ss, r); - combine gurds with current stte nd pss signls through their body

63 - specified by coords of top left corner, height, ctive input vector, nd output direction flg Module Genertors 7. OR gte trees: OR(tlc, tlr, hi, i, of); - forms tree to right nd bottom, output to right, or both left nd right

64 Module Genertors 8. Synch logic: SL(tlc, tlr, hi, i); - forms AND tree of inputs nd distributes outputs to rows below inputs - specified by coords of top left corner, height, nd ctive input vector

65 Module Genertors 9. Stte registers: SR(tlc, tlr, tf); - implements initil or non-initil stte using selector from N nd enble from E - specified by coords of top left corner, height, nd stte type flg

66 Overview of compiler opertion

67 Drwbcks of compiltion pproch Compile-time prtitioning does not consider runtime need for resources Which processes need to be concurrently ctive? Sttic lloctions do not dpt to run-time vilbility of resources Distributed & multitsked environments Sttic circuits do not redily support dynmic circuit behviour or structure Power of reconfigurtion remins untpped

68 An FPGA interpreter for Circl

69 Interpreter concept We pre-process spec until the functionl prmeters of modules re known At run time, the interpreter looks fter loding modules on n s needs bsis Involves module plcement, bitstrem gen & config The mount of logic loded depends upon resource vilbility Currently lod logic for stte, but could dynmiclly lod frgment of new process hierrchy

70 Overview of interpreter opertion

71 The Circl interpreter Extends the design flow to run-time mngement & ongoing FPGA configurtion circuit design does not complete until execution hs finished Finlizes prtitioning, logicl, nd physicl mpping of circuits t run time Determines through feedbck which components to implement next Elbortes & lods prts of the circuit s they re needed

72 Interprettion exmple Consider the FSM for process P with 4 sttes This process hs the following Circl spec P1 b P3 ( c) ( b) P2 P4 c b P1 ( c) P2 + bp3 P2 bp2 + P3 P3 ( b) P4 P4 cp4 + P2

73 Sttic circuit implementtion (lsb) IJ b m0 m1 m2 m3 m4 m5 (msb) c mn = minterm n = AND Σ = OR P1 b P3 ( c) ( b) b P2 P4 c P1 ( c) P2 + bp3 P2 bp2 + P3 P3 ( b) P4 P4 cp4 + P2 m0 (P1 P1) m5 (P1 P2) m0 + m2 (P2 P2) m1 (P4 P2) m2 (P1 P3) m1 (P2 P3) m0 (P3 P3) m3 (P3 P4) m0 + m4 (P4 P4) P1 P2 P3 P4 Σ Σ Σ Σ Σ SL r s

74 Circuit modelling & prtitioning P1 b P3 ( c) b P2 ( b) P4 c Processes re modelled s stte trnsition grphs nd processes re prtitioned ccording to their definitions P1 (c) P2 + bp3 P2 bp2 + P3 P3 ( b) P4 P4 cp4 + P2

75 Circuit modelling & prtitioning P1 ( c) b P2 b P3 ( b) P4 c P1 (c) P2 + bp3 P2 bp2 + P3 P3 ( b) P4 P4 cp4 + P2 Processes re modelled s stte trnsition grphs nd processes re prtitioned ccording to their definitions Initilly, the interpreter implements sub-grph rooted t the initil stte

76 Circuit modelling & prtitioning P1 ( c) b P2 b P3 ( b) P4 c P1 (c) P2 + bp3 P2 bp2 + P3 P3 ( b) P4 P4 cp4 + P2 Processes re modelled s stte trnsition grphs nd processes re prtitioned ccording to their definitions Initilly, the interpreter implements sub-grph rooted t the initil stte Nodes re included bredth-first until it is not possible to fit the trnsition logic for the next stte

77 Circuit modelling & prtitioning P1 ( c) b P2 b P3 ( b) P4 c P1 (c) P2 + bp3 P2 bp2 + P3 P3 ( b) P4 P4 cp4 + P2 Processes re modelled s stte trnsition grphs nd processes re prtitioned ccording to their definitions Initilly, the interpreter implements sub-grph rooted t the initil stte Nodes re included bredth-first until it is not possible to fit the trnsition logic for the next stte

78 Exmple Suppose the rry re for process P cn only ccommodte the behviour for stte P1 To determine which trnsition occurred, boundry stte registers for P2 nd P3 re needed s well (lsb) IJ b m0 m2 m5 (msb) c mn = minterm n = AND Σ = OR m0 (P1 P1) Σ m5 (P1 P2) m2 (P1 P3) P1 P2 P3 Σ Σ Σ SL r s

79 Determining circuitry to lod next When the boundry of the implemented subgrph is reched, the interpreter builds new sub-grph rooted t the boundry stte tht hs become ctive We use quick estimte of the dditionl spce needed by stte nd its trnsition logic Estimtor bsed on number of trnsitions from stte

80 Constructing the new sub-grph P1 b P3 ( c) b P2 ( b) P4 c Suppose we cn support the logic for T=6 trnsitions in totl

81 Constructing the new sub-grph P1 b P3 ( c) b P2 ( b) P4 c Suppose we cn support the logic for T=6 trnsitions in totl P1, P2, & P3 cn be implemented with T=5, but the inclusion of P4 with t4=2 is deemed infesible

82 Constructing the new sub-grph P1 b P3 ( c) b P2 ( b) P4 c Suppose we cn support the logic for T=6 trnsitions in totl P1, P2, & P3 cn be implemented with T=5, but the inclusion of P4 with t4=2 is deemed infesible When P4 becomes ctive, P2, P3, & P4 form stble configurtion

83 Detecting the need for reconfigurtion We support two modes of opertion: 1. Observed mode: ll process sttes re polled ech cycle 2. Unobserved mode (such s in n embedded ppliction): some smll circuitry is dded to ech process in order to interrupt the VHM when boundry stte is reched

84 FPGA prtitioning FPGA re is stticlly prtitioned to simplify run-time reconfigurtion Initilly, spce to ccommodte the lrgest stte for ech process is llocted this is then expnded to provide more spce for dditionl sttes when possible

85 Experimentl ssessment Rndom process genertion Timing of sub-grph selection in front end with vried brnching fctors nd circuit widths Worst-cse timing mesurements for circuit initilistion nd updte in the bck end Used 500Mhz, 512MB PIII, Jv, JBits, nd Celoxic XCV1000 bord

86 Exploits fst crry chins nd minimizes number of reconfigurtion frmes Deploys routing frmework to reduce rerouting overheds Virtex lyout

87 Sub-grph selection time (ms) vs Process width (CLB cols)

88 Initil bitstrem genertion time (s) vs Process width (CLB cols)

89 Generting circuit updtes (ms) vs Process width (CLB cols)

90 Reconfigurtion time (ms) vs Process width(clb cols)

91 Anlysis High routing costs with JBits, even for highly structured circuits Constrins the designs tht cn be run-time reconfigured Cpble of reconfiguring within 100ms The current methodology is fine for control pplictions tht cn tolerte these delys Lower bound on implementtion delys in the order of 10ms More hrdwre required for pplictions tht cnnot tolerte this

92 Further interpreter work Performnce improvement Better router Cching loops Better prtitioning strtegies? Determining how to efficiently dpt to dynmic prtition sizes Incorporting dt flow into the Circl interpreter Tking user s performnce objectives into ccount

93 Ongoing work

94 Generlized processes Work done by Jérémie Detrey to implement hierrchy, bstrction nd process cretion Developed on Wildcrd XCV300 implementtion of compiler

95 Abstrct process interfce For the vriety of process blocks required, common process interfce hs been defined

96 FSM process As before, only llows choice nd gurding, but process cn be switched on/off nd provides for bstrcted (internl) events

97 Implementing event bstrction

98 Hierrchicl composition

99 Hybrid process FSM-like behviour Stte could be composition or bstrction For exmple, consider process P 0 defined s P P P P P 1 0 bp 0 + bp 2 + c( Q + c( S R) d) Q R c P0 P1 P2 S - d b b c

100 Implementing hybrid processes Determine the FSM prt, clled P FSM Determine the other composition nd bstrction processes, P 1,, P n Currently, ly them ll out stticlly

101 Hybrid process block lyout

102 Sttus Tested these ides by implementing (on the Wildcrd) Turing Mchine using Circl s the specifiction lnguge Involved use of hierrchy, composition, nd bstrction Stticlly prellocted tpe of given length, but ctivted tpe squres s hed moved over them

103 Future work Support generlized processes in the interpreter Replce the interpreter front end Define dynmic lyouts for generlized processes Develop concepts for dynmic lloction of hybrid processes

104 Conclusion

105 In summry We ve mde progress towrds describing nd implementing sttic nd utomticlly virtulized process logic from high-level The bility to describe & implement trditionl dtpth elements needs to be incorported The rel work in formlly describing nd implementing dynmic circuits is still to come

106 Modelling reconfigurble devices How cn dynmic process cretion/destruction be described in Circl? Need dditionl semntics Is Circl, indeed process lgebr best? Wht hrdwre relistion supports the semntics? Effort lso going into deriving low-level model of reconfigurtion using Circl So fr, we re focusing on the reconfigurtor Intend this model to ct s trget of compiler/interpreter My need dditionl high-level syntx to steer compiler

Refined interfaces for compositional verification

Refined interfaces for compositional verification Refined interfces for compositionl verifiction Frédéric Lng INRI Rhône-lpes http://www.inrilpes.fr/vsy Motivtion Enumertive verifiction of concurrent systems Prllel composition of synchronous processes

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

Reinforcement learning II

Reinforcement learning II CS 1675 Introduction to Mchine Lerning Lecture 26 Reinforcement lerning II Milos Huskrecht milos@cs.pitt.edu 5329 Sennott Squre Reinforcement lerning Bsics: Input x Lerner Output Reinforcement r Critic

More information

Notes on specifying systems in EST

Notes on specifying systems in EST Robert Meolic, Ttjn Kpus: Notes on specifying systems in EST 1 Notes on specifying systems in EST Robert Meolic, Ttjn Kpus Fculty of EE & CS University of Mribor Robert Meolic, Ttjn Kpus: Notes on specifying

More information

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University CS415 Compilers Lexicl Anlysis nd These slides re sed on slides copyrighted y Keith Cooper, Ken Kennedy & Lind Torczon t Rice University First Progrmming Project Instruction Scheduling Project hs een posted

More information

Concepts of Concurrent Computation Spring 2015 Lecture 9: Petri Nets

Concepts of Concurrent Computation Spring 2015 Lecture 9: Petri Nets Concepts of Concurrent Computtion Spring 205 Lecture 9: Petri Nets Sebstin Nnz Chris Poskitt Chir of Softwre Engineering Petri nets Petri nets re mthemticl models for describing systems with concurrency

More information

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is

More information

ECE 327 Solution to Midterm 2016t1 (Winter)

ECE 327 Solution to Midterm 2016t1 (Winter) ECE 7 Solution to Midterm 6t (Winter) All requests for re-mrks must be submitted in writing to Mrk Agrd before 8:m on ridy Mrch. A rndom collection of midterms were scnned. Exms tht re submitted for re-mrking

More information

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

More information

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

5.1 Definitions and Examples 5.2 Deterministic Pushdown Automata

5.1 Definitions and Examples 5.2 Deterministic Pushdown Automata CSC4510 AUTOMATA 5.1 Definitions nd Exmples 5.2 Deterministic Pushdown Automt Definitions nd Exmples A lnguge cn be generted by CFG if nd only if it cn be ccepted by pushdown utomton. A pushdown utomton

More information

How to simulate Turing machines by invertible one-dimensional cellular automata

How to simulate Turing machines by invertible one-dimensional cellular automata How to simulte Turing mchines by invertible one-dimensionl cellulr utomt Jen-Christophe Dubcq Déprtement de Mthémtiques et d Informtique, École Normle Supérieure de Lyon, 46, llée d Itlie, 69364 Lyon Cedex

More information

COMPUTER SCIENCE TRIPOS

COMPUTER SCIENCE TRIPOS CST.2011.2.1 COMPUTER SCIENCE TRIPOS Prt IA Tuesdy 7 June 2011 1.30 to 4.30 COMPUTER SCIENCE Pper 2 Answer one question from ech of Sections A, B nd C, nd two questions from Section D. Submit the nswers

More information

DIRECT CURRENT CIRCUITS

DIRECT CURRENT CIRCUITS DRECT CURRENT CUTS ELECTRC POWER Consider the circuit shown in the Figure where bttery is connected to resistor R. A positive chrge dq will gin potentil energy s it moves from point to point b through

More information

Global Session Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Session Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Session Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions

More information

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations Introduction: Binding Prt of 4-lecture introduction Scheduling Resource inding Are nd performnce estimtion Control unit synthesis This lecture covers Resources nd resource types Resource shring nd inding

More information

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation Strong Bisimultion Overview Actions Lbeled trnsition system Trnsition semntics Simultion Bisimultion References Robin Milner, Communiction nd Concurrency Robin Milner, Communicting nd Mobil Systems 32

More information

Outline Last time: Deriving the State Diagram & Datapath (Cont.) Mapping the Datapath onto Control

Outline Last time: Deriving the State Diagram & Datapath (Cont.) Mapping the Datapath onto Control Outline Lst time: Deriving the Stte Digrm & Dtpth (Cont.) Mpping the Dtpth onto Control This lecture: Comintionl Testility nd Test-pttern Genertion Fults in digitl circuits Wht is test? : Controllility

More information

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun: CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.6.: Push Down Automt Remrk: This mteril is no longer tught nd not directly exm relevnt Anton Setzer (Bsed

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 CMSC 330 1 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All exmples so fr Nondeterministic

More information

EE273 Lecture 15 Asynchronous Design November 16, Today s Assignment

EE273 Lecture 15 Asynchronous Design November 16, Today s Assignment EE273 Lecture 15 Asynchronous Design Novemer 16, 199 Willim J. Dlly Computer Systems Lortory Stnford University illd@csl.stnford.edu 1 Tody s Assignment Term Project see project updte hndout on we checkpoint

More information

#6A&B Magnetic Field Mapping

#6A&B Magnetic Field Mapping #6A& Mgnetic Field Mpping Gol y performing this lb experiment, you will: 1. use mgnetic field mesurement technique bsed on Frdy s Lw (see the previous experiment),. study the mgnetic fields generted by

More information

Bisimulation. R.J. van Glabbeek

Bisimulation. R.J. van Glabbeek Bisimultion R.J. vn Glbbeek NICTA, Sydney, Austrli. School of Computer Science nd Engineering, The University of New South Wles, Sydney, Austrli. Computer Science Deprtment, Stnford University, CA 94305-9045,

More information

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton 25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q

More information

Learning Moore Machines from Input-Output Traces

Learning Moore Machines from Input-Output Traces Lerning Moore Mchines from Input-Output Trces Georgios Gintmidis 1 nd Stvros Tripkis 1,2 1 Alto University, Finlnd 2 UC Berkeley, USA Motivtion: lerning models from blck boxes Inputs? Lerner Forml Model

More information

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014 CS125 Lecture 12 Fll 2014 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb. CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38 Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2 CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

Uninformed Search Lecture 4

Uninformed Search Lecture 4 Lecture 4 Wht re common serch strtegies tht operte given only serch problem? How do they compre? 1 Agend A quick refresher DFS, BFS, ID-DFS, UCS Unifiction! 2 Serch Problem Formlism Defined vi the following

More information

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!)

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!) CMSC 330: Orgniztion of Progrmming Lnguges DFAs, nd NFAs, nd Regexps (Oh my!) CMSC330 Spring 2018 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All

More information

Theory of Computation Regular Languages

Theory of Computation Regular Languages Theory of Computtion Regulr Lnguges Bow-Yw Wng Acdemi Sinic Spring 2012 Bow-Yw Wng (Acdemi Sinic) Regulr Lnguges Spring 2012 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of

More information

FABER Formal Languages, Automata and Models of Computation

FABER Formal Languages, Automata and Models of Computation DVA337 FABER Forml Lnguges, Automt nd Models of Computtion Lecture 5 chool of Innovtion, Design nd Engineering Mälrdlen University 2015 1 Recp of lecture 4 y definition suset construction DFA NFA stte

More information

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1 Non-Deterministic Finite Automt Fll 2018 Costs Busch - RPI 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q q2 1 q 0 q 3 Fll 2018 Costs Busch - RPI 2 Nondeterministic Finite Automton (NFA) Alphbet

More information

CS 188: Artificial Intelligence Spring 2007

CS 188: Artificial Intelligence Spring 2007 CS 188: Artificil Intelligence Spring 2007 Lecture 3: Queue-Bsed Serch 1/23/2007 Srini Nrynn UC Berkeley Mny slides over the course dpted from Dn Klein, Sturt Russell or Andrew Moore Announcements Assignment

More information

Formal Language and Automata Theory (CS21004)

Formal Language and Automata Theory (CS21004) Forml Lnguge nd Automt Forml Lnguge nd Automt Theory (CS21004) Khrgpur Khrgpur Khrgpur Forml Lnguge nd Automt Tle of Contents Forml Lnguge nd Automt Khrgpur 1 2 3 Khrgpur Forml Lnguge nd Automt Forml Lnguge

More information

This lecture covers Chapter 8 of HMU: Properties of CFLs

This lecture covers Chapter 8 of HMU: Properties of CFLs This lecture covers Chpter 8 of HMU: Properties of CFLs Turing Mchine Extensions of Turing Mchines Restrictions of Turing Mchines Additionl Reding: Chpter 8 of HMU. Turing Mchine: Informl Definition B

More information

Administrivia CSE 190: Reinforcement Learning: An Introduction

Administrivia CSE 190: Reinforcement Learning: An Introduction Administrivi CSE 190: Reinforcement Lerning: An Introduction Any emil sent to me bout the course should hve CSE 190 in the subject line! Chpter 4: Dynmic Progrmming Acknowledgment: A good number of these

More information

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or

More information

KNOWLEDGE-BASED AGENTS INFERENCE

KNOWLEDGE-BASED AGENTS INFERENCE AGENTS THAT REASON LOGICALLY KNOWLEDGE-BASED AGENTS Two components: knowledge bse, nd n inference engine. Declrtive pproch to building n gent. We tell it wht it needs to know, nd It cn sk itself wht to

More information

MAA 4212 Improper Integrals

MAA 4212 Improper Integrals Notes by Dvid Groisser, Copyright c 1995; revised 2002, 2009, 2014 MAA 4212 Improper Integrls The Riemnn integrl, while perfectly well-defined, is too restrictive for mny purposes; there re functions which

More information

Boolean algebra.

Boolean algebra. http://en.wikipedi.org/wiki/elementry_boolen_lger Boolen lger www.tudorgir.com Computer science is not out computers, it is out computtion nd informtion. computtion informtion computer informtion Turing

More information

Designing finite automata II

Designing finite automata II Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of

More information

Lexical Analysis Finite Automate

Lexical Analysis Finite Automate Lexicl Anlysis Finite Automte CMPSC 470 Lecture 04 Topics: Deterministic Finite Automt (DFA) Nondeterministic Finite Automt (NFA) Regulr Expression NFA DFA A. Finite Automt (FA) FA re grph, like trnsition

More information

Semantic reachability for simple process algebras. Richard Mayr. Abstract

Semantic reachability for simple process algebras. Richard Mayr. Abstract Semntic rechbility for simple process lgebrs Richrd Myr Abstrct This pper is n pproch to combine the rechbility problem with semntic notions like bisimultion equivlence. It dels with questions of the following

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Lerning Tom Mitchell, Mchine Lerning, chpter 13 Outline Introduction Comprison with inductive lerning Mrkov Decision Processes: the model Optiml policy: The tsk Q Lerning: Q function Algorithm

More information

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016 CS125 Lecture 12 Fll 2016 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple

More information

Part 5 out of 5. Automata & languages. A primer on the Theory of Computation. Last week was all about. a superset of Regular Languages

Part 5 out of 5. Automata & languages. A primer on the Theory of Computation. Last week was all about. a superset of Regular Languages Automt & lnguges A primer on the Theory of Computtion Lurent Vnbever www.vnbever.eu Prt 5 out of 5 ETH Zürich (D-ITET) October, 19 2017 Lst week ws ll bout Context-Free Lnguges Context-Free Lnguges superset

More information

Acceptance Sampling by Attributes

Acceptance Sampling by Attributes Introduction Acceptnce Smpling by Attributes Acceptnce smpling is concerned with inspection nd decision mking regrding products. Three spects of smpling re importnt: o Involves rndom smpling of n entire

More information

More on automata. Michael George. March 24 April 7, 2014

More on automata. Michael George. March 24 April 7, 2014 More on utomt Michel George Mrch 24 April 7, 2014 1 Automt constructions Now tht we hve forml model of mchine, it is useful to mke some generl constructions. 1.1 DFA Union / Product construction Suppose

More information

Classical Mechanics. From Molecular to Con/nuum Physics I WS 11/12 Emiliano Ippoli/ October, 2011

Classical Mechanics. From Molecular to Con/nuum Physics I WS 11/12 Emiliano Ippoli/ October, 2011 Clssicl Mechnics From Moleculr to Con/nuum Physics I WS 11/12 Emilino Ippoli/ October, 2011 Wednesdy, October 12, 2011 Review Mthemtics... Physics Bsic thermodynmics Temperture, idel gs, kinetic gs theory,

More information

Monotonic Parallel and Orthogonal Routing for Single-Layer Ball Grid Array Packages

Monotonic Parallel and Orthogonal Routing for Single-Layer Ball Grid Array Packages Monotonic Prllel nd Orthogonl Routing for Single-Lyer Bll Grid Arry Pckges Yoichi Tomiok Atsushi Tkhshi Deprtment of Communictions nd Integrted Systems, Tokyo Institute of Technology 2 12 1 S3 58 Ookym,

More information

Formal languages, automata, and theory of computation

Formal languages, automata, and theory of computation Mälrdlen University TEN1 DVA337 2015 School of Innovtion, Design nd Engineering Forml lnguges, utomt, nd theory of computtion Thursdy, Novemer 5, 14:10-18:30 Techer: Dniel Hedin, phone 021-107052 The exm

More information

Nondeterminism and Nodeterministic Automata

Nondeterminism and Nodeterministic Automata Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely

More information

Semantic Reachability. Richard Mayr. Institut fur Informatik. Technische Universitat Munchen. Arcisstr. 21, D Munchen, Germany E. N. T. C. S.

Semantic Reachability. Richard Mayr. Institut fur Informatik. Technische Universitat Munchen. Arcisstr. 21, D Munchen, Germany E. N. T. C. S. URL: http://www.elsevier.nl/locte/entcs/volume6.html?? pges Semntic Rechbility Richrd Myr Institut fur Informtik Technische Universitt Munchen Arcisstr. 21, D-80290 Munchen, Germny e-mil: myrri@informtik.tu-muenchen.de

More information

Learning Regular Languages over Large Alphabets

Learning Regular Languages over Large Alphabets Irini-Eleftheri Mens VERIMAG, University of Grenoble-Alpes Lerning Regulr Lnguges over Lrge Alphbets 10 October 2017 Jury Members Oded Mler Directeur de thèse Lurent Fribourg Exminteur Dn Angluin Rpporteur

More information

DATA Search I 魏忠钰. 复旦大学大数据学院 School of Data Science, Fudan University. March 7 th, 2018

DATA Search I 魏忠钰. 复旦大学大数据学院 School of Data Science, Fudan University. March 7 th, 2018 DATA620006 魏忠钰 Serch I Mrch 7 th, 2018 Outline Serch Problems Uninformed Serch Depth-First Serch Bredth-First Serch Uniform-Cost Serch Rel world tsk - Pc-mn Serch problems A serch problem consists of:

More information

Good-for-Games Automata versus Deterministic Automata.

Good-for-Games Automata versus Deterministic Automata. Good-for-Gmes Automt versus Deterministic Automt. Denis Kuperberg 1,2 Mich l Skrzypczk 1 1 University of Wrsw 2 IRIT/ONERA (Toulouse) Séminire MoVe 12/02/2015 LIF, Luminy Introduction Deterministic utomt

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

More information

Electron Correlation Methods

Electron Correlation Methods Electron Correltion Methods HF method: electron-electron interction is replced by n verge interction E HF c E 0 E HF E 0 exct ground stte energy E HF HF energy for given bsis set HF Ec 0 - represents mesure

More information

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility)

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility) CS5371 Theory of Computtion Lecture 20: Complexity V (Polynomil-Time Reducibility) Objectives Polynomil Time Reducibility Prove Cook-Levin Theorem Polynomil Time Reducibility Previously, we lernt tht if

More information

Summer School Verification Technology, Systems & Applications

Summer School Verification Technology, Systems & Applications VTSA 2011 Summer School Verifiction Technology, Systems & Applictions 4th edition since 2008: Liège (Belgium), Sep. 19 23, 2011 free prticiption, limited number of prticipnts ppliction dedline: July 22,

More information

CISC 4090 Theory of Computation

CISC 4090 Theory of Computation 9/6/28 Stereotypicl computer CISC 49 Theory of Computtion Finite stte mchines & Regulr lnguges Professor Dniel Leeds dleeds@fordhm.edu JMH 332 Centrl processing unit (CPU) performs ll the instructions

More information

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science CSCI 340: Computtionl Models Kleene s Theorem Chpter 7 Deprtment of Computer Science Unifiction In 1954, Kleene presented (nd proved) theorem which (in our version) sttes tht if lnguge cn e defined y ny

More information

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn

More information

Jin-Fu Li. Department of Electrical Engineering National Central University Jhongli, Taiwan

Jin-Fu Li. Department of Electrical Engineering National Central University Jhongli, Taiwan Trnsprent BIST for RAMs Jin-Fu Li Advnced d Relible Systems (ARES) Lb. Deprtment of Electricl Engineering Ntionl Centrl University Jhongli, Tiwn Outline Introduction Concept of Trnsprent Test Trnsprent

More information

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA) Finite Automt (FA or DFA) CHAPTER Regulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, equivlence of NFAs DFAs, closure under regulr

More information

a,b a 1 a 2 a 3 a,b 1 a,b a,b 2 3 a,b a,b a 2 a,b CS Determinisitic Finite Automata 1

a,b a 1 a 2 a 3 a,b 1 a,b a,b 2 3 a,b a,b a 2 a,b CS Determinisitic Finite Automata 1 CS4 45- Determinisitic Finite Automt -: Genertors vs. Checkers Regulr expressions re one wy to specify forml lnguge String Genertor Genertes strings in the lnguge Deterministic Finite Automt (DFA) re nother

More information

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51 Non Deterministic Automt Linz: Nondeterministic Finite Accepters, pge 51 1 Nondeterministic Finite Accepter (NFA) Alphbet ={} q 1 q2 q 0 q 3 2 Nondeterministic Finite Accepter (NFA) Alphbet ={} Two choices

More information

Module 9: Tries and String Matching

Module 9: Tries and String Matching Module 9: Tries nd String Mtching CS 240 - Dt Structures nd Dt Mngement Sjed Hque Veronik Irvine Tylor Smith Bsed on lecture notes by mny previous cs240 instructors Dvid R. Cheriton School of Computer

More information

Module 9: Tries and String Matching

Module 9: Tries and String Matching Module 9: Tries nd String Mtching CS 240 - Dt Structures nd Dt Mngement Sjed Hque Veronik Irvine Tylor Smith Bsed on lecture notes by mny previous cs240 instructors Dvid R. Cheriton School of Computer

More information

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

SUMMER KNOWHOW STUDY AND LEARNING CENTRE SUMMER KNOWHOW STUDY AND LEARNING CENTRE Indices & Logrithms 2 Contents Indices.2 Frctionl Indices.4 Logrithms 6 Exponentil equtions. Simplifying Surds 13 Opertions on Surds..16 Scientific Nottion..18

More information

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So. 5/9/ Comintionl Logic ENGG05 st Semester, 0 Dr. Hyden So Representtions of Logic Functions Recll tht ny complex logic function cn e expressed in wys: Truth Tle, Boolen Expression, Schemtics Only Truth

More information

Safety Controller Synthesis for Switched Systems using Multiscale Symbolic Models

Safety Controller Synthesis for Switched Systems using Multiscale Symbolic Models Sfety Controller Synthesis for Switched Systems using Multiscle Symolic Models Antoine Girrd Lortoire des Signux et Systèmes Gif sur Yvette, Frnce Séminire du LAAS Toulouse, 29 Juin, 2016 A. Girrd (L2S-CNRS)

More information

Lecture 9: LTL and Büchi Automata

Lecture 9: LTL and Büchi Automata Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled

More information

Chapter 0. What is the Lebesgue integral about?

Chapter 0. What is the Lebesgue integral about? Chpter 0. Wht is the Lebesgue integrl bout? The pln is to hve tutoril sheet ech week, most often on Fridy, (to be done during the clss) where you will try to get used to the ides introduced in the previous

More information

expression simply by forming an OR of the ANDs of all input variables for which the output is

expression simply by forming an OR of the ANDs of all input variables for which the output is 2.4 Logic Minimiztion nd Krnugh Mps As we found ove, given truth tle, it is lwys possile to write down correct logic expression simply y forming n OR of the ANDs of ll input vriles for which the output

More information

Real-time Concepts for a Formal Specification Language for Software / Hardware Systems

Real-time Concepts for a Formal Specification Language for Software / Hardware Systems 1 Rel-time Concepts for Forml Specifiction Lnguge for Softwre / Hrdwre Systems M.C.W. Geilen nd J.P.M. Voeten Abstrct Incresingly complex systems re being designed tht consist of concurrently operting

More information

19 Optimal behavior: Game theory

19 Optimal behavior: Game theory Intro. to Artificil Intelligence: Dle Schuurmns, Relu Ptrscu 1 19 Optiml behvior: Gme theory Adversril stte dynmics hve to ccount for worst cse Compute policy π : S A tht mximizes minimum rewrd Let S (,

More information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tble of Contents: Week 1: Preliminries (set lgebr, reltions, functions) (red Chpters 1-4) Weeks

More information

Java II Finite Automata I

Java II Finite Automata I Jv II Finite Automt I Bernd Kiefer Bernd.Kiefer@dfki.de Deutsches Forschungszentrum für künstliche Intelligenz Finite Automt I p.1/13 Processing Regulr Expressions We lredy lerned out Jv s regulr expression

More information

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan CS 267: Automted Verifiction Lecture 8: Automt Theoretic Model Checking Instructor: Tevfik Bultn LTL Properties Büchi utomt [Vrdi nd Wolper LICS 86] Büchi utomt: Finite stte utomt tht ccept infinite strings

More information

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation CS2N: The Coming Revolution in Computer Architecture Lortory 2 Preprtion Ojectives:. Understnd the principle of sttic CMOS gte circuits 2. Build simple logic gtes from MOS trnsistors 3. Evlute these gtes

More information

CS 330 Formal Methods and Models

CS 330 Formal Methods and Models CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 2 1. Prove ((( p q) q) p) is tutology () (3pts) y truth tle. p q p q

More information

Turing Machines Part One

Turing Machines Part One Turing Mchines Prt One Hello Hello Condensed Condensed Slide Slide Reders! Reders! Tody s Tody s lecture lecture consists consists lmost lmost exclusively exclusively of of nimtions nimtions of of Turing

More information

Ordinary differential equations

Ordinary differential equations Ordinry differentil equtions Introduction to Synthetic Biology E Nvrro A Montgud P Fernndez de Cordob JF Urchueguí Overview Introduction-Modelling Bsic concepts to understnd n ODE. Description nd properties

More information

Some Theory of Computation Exercises Week 1

Some Theory of Computation Exercises Week 1 Some Theory of Computtion Exercises Week 1 Section 1 Deterministic Finite Automt Question 1.3 d d d d u q 1 q 2 q 3 q 4 q 5 d u u u u Question 1.4 Prt c - {w w hs even s nd one or two s} First we sk whether

More information

Informe Técnico / Technical Report

Informe Técnico / Technical Report DEPARTAMENTO DE SISTEMAS INFORMÁTICOS Y COMPUTACIÓN UNIVERSIDAD POLITÉCNICA DE VALENCIA P.O. Box: 22012 E-46071 Vlenci (SPAIN) Informe Técnico / Technicl Report Ref. No.: DSIC-II/03/10 Pges: 30 Title:

More information

SAT-Solving in CSP Trace Refinement

SAT-Solving in CSP Trace Refinement ST-Solving in CSP Trce Refinement Hristin Plikrev, Joël Ouknine nd. W. Roscoe Deprtment of Computer Science, Oxford University, UK bstrct In this pper, we ddress the problem of pplying ST-bsed bounded

More information

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont.

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont. NFA DFA Exmple 3 CMSC 330: Orgniztion of Progrmming Lnguges NFA {B,D,E {A,E {C,D {E Finite Automt, con't. R = { {A,E, {B,D,E, {C,D, {E 2 Equivlence of DFAs nd NFAs Any string from {A to either {D or {CD

More information

MAC-solutions of the nonexistent solutions of mathematical physics

MAC-solutions of the nonexistent solutions of mathematical physics Proceedings of the 4th WSEAS Interntionl Conference on Finite Differences - Finite Elements - Finite Volumes - Boundry Elements MAC-solutions of the nonexistent solutions of mthemticl physics IGO NEYGEBAUE

More information

THE NUMBER CONCEPT IN GREEK MATHEMATICS SPRING 2009

THE NUMBER CONCEPT IN GREEK MATHEMATICS SPRING 2009 THE NUMBER CONCEPT IN GREEK MATHEMATICS SPRING 2009 0.1. VII, Definition 1. A unit is tht by virtue of which ech of the things tht exist is clled one. 0.2. VII, Definition 2. A number is multitude composed

More information

1.4 Nonregular Languages

1.4 Nonregular Languages 74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll

More information

Student Activity 3: Single Factor ANOVA

Student Activity 3: Single Factor ANOVA MATH 40 Student Activity 3: Single Fctor ANOVA Some Bsic Concepts In designed experiment, two or more tretments, or combintions of tretments, is pplied to experimentl units The number of tretments, whether

More information

Fault Modeling. EE5375 ADD II Prof. MacDonald

Fault Modeling. EE5375 ADD II Prof. MacDonald Fult Modeling EE5375 ADD II Prof. McDonld Stuck At Fult Models l Modeling of physicl defects (fults) simplify to logicl fult l stuck high or low represents mny physicl defects esy to simulte technology

More information

2. Lexical Analysis. Oscar Nierstrasz

2. Lexical Analysis. Oscar Nierstrasz 2. Lexicl Anlysis Oscr Nierstrsz Thnks to Jens Plserg nd Tony Hosking for their kind permission to reuse nd dpt the CS132 nd CS502 lecture notes. http://www.cs.ucl.edu/~plserg/ http://www.cs.purdue.edu/homes/hosking/

More information

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1 Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more

More information

Chapter 4: Dynamic Programming

Chapter 4: Dynamic Programming Chpter 4: Dynmic Progrmming Objectives of this chpter: Overview of collection of clssicl solution methods for MDPs known s dynmic progrmming (DP) Show how DP cn be used to compute vlue functions, nd hence,

More information