270 likes | 509 Views
LOGIC DESIGN. STATE REDUCTION STATE ASSIGNMENT (very limited in Mano, Roth more details). STATE REDUCTION ( DURUM İNDİRGEMESİ ). When should it be done After the state diagram determination What are the benefits Number of memory elements could be reduced
E N D
LOGIC DESIGN STATE REDUCTION STATE ASSIGNMENT (very limited in Mano, Roth more details)
STATE REDUCTION(DURUM İNDİRGEMESİ) • When should it be done • After the state diagram determination • What are the benefits • Number of memory elements could be reduced • Unused states introduced or their number increased which causes simplifications on the combinational part of the sequential design Ertuğrul Eriş
EQUIVALENT STATE DEFINITION Different machine Z(A,X) =Z*(B,X) Same machine Z(A,X) =Z(B,X) A and B states are called «equivalent» if the output bit streams Z ve Z* are the same for any input in any lenght. Could this definition be used for testing whether two states are equivalent or not? Ertuğrul Eriş
HOW TO FIND EQUIVALENT STATES • Teorem: Necessary and sufficient condition for A and B states being equivalent is • Next states should be equivalent • Outputs should be the same for all one-lenght inputs. • For example for a two-input-machine assume that z represents output functions, and g represents next state functions, then • zi(A,00) = zi (B,00) i=1,2 g (A,00) = g (B,00) • zi (A,01) = zi (B,01) i=1,2 g (A,01) = g (B,01) • zi (A,10) = zi (B,10) i=1,2 g (A,10) = g (B,10) • zi (A,11) = zi (B,11) i=1,2 g (A,11) = g (B,11) Ertuğrul Eriş
PROOF • Teorem: Necessary and sufficient condition for A and B states being equivalent is • Next states should be equivalent • Outputs should be the same for all one-lenght inputs. • Assume that X:represent an input stream with any lenght • DEFINITION: Z(A, X )= Z(B, X) A=B • NECESSARY CONDITION • A=B Z(A, X )= Z(B, X) • Z(A, X )= Z(B, X) • Z(A, X X )= Z(B, X X) • Z(g(A), X )= Z(g(B), X) g(A)= g(B) • SUFFICIENT CONDITION • Z(A, X )= Z(B, X) • g(A)= g(B) Z(g(A), X )= Z(g(B), X) • Z(A, X )= Z(B, X) Ertuğrul Eriş
STATE REDUCTION BY IMPLICATION TABLE EXAMPLE FOR MEALY MACHINE Teorem: Necessary and sufficient condition for A and B states being equivalent is Next states should be equivalent outputs should be the same for all one-lenght inputs. √ Ertuğrul Eriş
STATE REDUCTION BY IMPLICATION TABLE EXAMPLE FOR MEALY MACHINE What would be the effect on sythesis? Ertuğrul Eriş
STATE REDUCTION BY IMPLICATION TABLE EXAMPLE FOR MEALY MACHINE Ertuğrul Eriş
STATE REDUCTION BY STATE PARTITIONING • Partition (bölmeleme) all the states • Put all the states which could be equivalent for all one-lenght inputs in the same class • Partition:union of the classes give the set of all states, while intersection is empty set • If two states are in the same calss then they could be equivalent • If two states are from two different classes then they will not be equivalent. Ertuğrul Eriş
STATE REDUCTION EXAMPLE BY PARTITIONING • S0=(a b c d e f g) • z= 0 0 1 0 1 1 0 • S1 = ( c e f ) (a b d g ) • x=0 ( e c f ) (d f a b ) • x=1 ( d a b) (c g ea ) • S2 = ( c e f ) (b) (a d) (g) • x=0 ( e c f ) (f) (d a). (b) • x=1 ( d a b) (g) (c e) (a) • S3 = (c e) (f) (b) (a d) (g) • x=0 (e c) (f) (f) (d a). (b) • x=1 (d a) (b) (g) (c e) (a) • S3 = S4 Teorem: Necessary and sufficient condition for A and B states being equivalent is Next states should be equivalent outputs should be the same for all one-lenght inputs. Ertuğrul Eriş
STATE ASSIGNMENT (DURUM KODLAMASI) • When shoud it be done • After state reduction • What are the benefits • State assignment will determine input functions of the memory elements and the output functions of the circuit in other words combinational part of the sequenttial circuit. • How many different codes are there? • n=number of state variables, then 2n codes • What is the number of different assignments? • m is the number of states • (2n) (2n-1) (2n-2) (2n-3)… (2n-m+1 )= Ertuğrul Eriş
EQUIVALENT ASSIGNMENTS • 24 different assignments for a three-state machine • 1. and 3. column assinments are the interchange if state variables does not effect design cost, therefore equivalent assignments • 1. and 24. assinments are complement of each other, equivalent? Ertuğrul Eriş
EQUIVALENT CODES/ASSIGNMENTS FOR VARIOUS FFs Ertuğrul Eriş
EQUIVALENT ASSIGNMENTS FOR SEQUENCE DETECTOR Ertuğrul Eriş
DIFFERENT ASSIGNMENTS FOR THREE AND FOUR STATE MACHINES Ertuğrul Eriş
NUMBER OF STATES VS DIFFERENT ASSIGNMENTS Ertuğrul Eriş
STATE ASSIGNMENTS METHODS • Boolean function complexity definition • Complexity definition for a group of functiions: not easy!! • Function which has less number of independen variables • Function which has either low number of one’s (zero’s) or high number of ones (zeros) • Increase number of first order cubes • Number of states =number of FF; codes are 2n Diğer yöntemler • Heuristic methods • Bench marking Ertuğrul Eriş
A SIMPLE METHOD • RULE 1: Give neighbour codes for state pairs which goes to the same next states under the same inputs • RULE 2: Give neighbour codes for next state pairs four the neighbour codes • RULE 3: Give neighbour codes for state pairs which gives the same output for the same input Ertuğrul Eriş
EXAMPLE Ertuğrul Eriş
EXAMPLE • RULE 1: Give neighbour codes for state pairs which goes to the same next states under the same inputs • x=0: ACEG→AC AE AG CE CG EG; DF • x=1: ABDF→AB AD AF BD BF DF ; EG • RULE 2: Give neighbour codes for next state pairs four the neighbour codes • BC CD BE CFx2BGx2 • RULE 3: Give neighbour codes for state pairs which gives the same output for the same input • (ABCDEGG) (ABCDEF) • Neighbour coding pairs ordering: DF; EG; CF; BG; AE; AC; AB; AD Ertuğrul Eriş
EXAMPLE Neighbour coding pairs ordering : DF; EG; CF; BG; AE; AC; AB; AD Ertuğrul Eriş
EXAMPLE Ertuğrul Eriş
PROGRAM DESIGN DEPT, PROGRAM G R A D U A T E S T U D E N T STUDENT P R OG R A M O U T C O M E S PROGRAM OUTCOMES P R OG R A M O U T C O M E S STATE, ENTREPRENEUR FIELD QALIFICATIONS EU/NATIONAL QUALIFICATIONS KNOWLEDGE SKILLS COMPETENCES NEWCOMERSTUDENT ORIENTIATION GOVERNANCE Std. questionnaire ALUMNI, PARENTS ORIENTIATION STUDENT PROFILE Std. questionnaire FACULTY NGO STUDENT, ??? CIRCICULUM ??? INTRERNAL CONSTITUENT Std. questionnaire EXTRERNAL CONSTITUENT EXTRERNAL CONSTITUENT REQUIREMENTS EU/NATIONAL FIELD QUALIFICATIONS PROGRAM OUTCOMES QUESTIONNAIRES QUALITY IMP. TOOLS GOAL: NATIONAL/INTERNATIONAL ACCREDITION
BLOOM’S TAXONOMYANDERSON AND KRATHWOHL (2001) !!Listening !! Doesn’t exits in the original!!! http://www.learningandteaching.info/learning/bloomtax.htm Ertuğrul Eriş
ULUSAL LİSANS YETERLİLİKLER ÇERÇEVESİ BLOOMS TAXONOMY Ertuğrul Eriş
COURSE ASSESMENT MATRIX LEARNING OUTCOMES Ertuğrul Eriş