02_old_final

02_old_final - E L E C 1 5 1 P a s t F i n a l E x a m Q u e s t i o n s 1 6 9 9 1 S t a t e R e d u c t i o n 1 5 G i v e n a s t a t e t r a n s

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: E L E C 1 5 1 P a s t F i n a l E x a m . Q u e s t i o n s , 1 / 6 9 9- 1 . S t a t e R e d u c t i o n ( 1 5 % ) G i v e n a s t a t e t r a n s i t i o n d i a g r a m b e l o w , u s e i m p l i c a t i o n c h a r t t o d e t e r m i n e a n d d r a w t h e f u l l y r e d u c e d s t a t e t r a n s i t i o n d i a g r a m . P r e s e n t N e x t S t a t e O u t p u t S t a t e X = X = 1 X = X = 1 A C E B H G 1 C B A D E H 1 E E C F H D 1 G A H 1 H D F 1 9 9- 2 . S t a t e A s s i g n m e n t ( 1 5 % ) G i v e n a s t a t e t r a n s i t i o n t a b l e o f M e a l y m a c h i n e b e l o w . a ) . D o t h e s t a t e a s s i g n m e n t b y m i n i m u m b i t c h a n g e h e u r i s t i c . H o w m a n y b i t c h a n g e s f o r a l l t r a n s i t i o n s ? ( 5 % ) b ) . D o t h e s t a t e a s s i g n m e n t b y s t a t e a s s i g n m e n t g u i d e l i n e s . H o w m a n y l i t e r a l s a n d e q u i v a l e n t g a t e c o u n t s a r e i n n e x t- s t a t e f u n c t i o n s i f t h e f i n i t e s t a t e m a c h i n e i s i m p l e m e n t e d b y D f l i p- f l o p s ? ( 1 % ) P r e s e n t N e x t S t a t e O u t p u t S t a t e X = X = 1 X = X = 1 A A D B A D 1 C B C D A C 9 9- 3 . V e n d i n g M a c h i n e ( 2 % ) A v e n d i n g m a c h i n e w i l l d e l i v e r a p a c k a g e o f g u m a f t e r 2 c e n t s a r e d e p o s i t e d . T h e m a c h i n e h a s s i n g l e c o i n s l o t f o r n i c k e l s ( 5 c e n t s ) a n d d i m e s ( 1 c e n t s ) . T h e m a c h i n e c a n n o t m a k e c h a n g e . B u t i f 2 5 c e n t s a r e d e p o s i t e d , i t w i l l c r e d i t t h e b u y e r w i t h 5 c e n t s a n d w a i t f o r t h e b u y e r t o m a k e a s e c o n d p u r c h a s e . a ) . D r a w a m i n i m i z e d s t a t e t r a n s i t i o n d i a g r a m i n M o o r e m a c h i n e . ( 5 % ) b ) . D r a w a m i n i m i z e d s t a t e t r a n s i t i o n d i a g r a m i n M e a l y m a c h i n e . ( 5 % ) c ) . D o s t a t e a s s i g n m e n t i n o r d e r ( o r f o r “ c e n t ” , 1 o r 1 f o r “ 5 c e n t s ” , 1 o r 1 f o r “ 1 c e n t s ” , e t c . ) a n d i m p l e m e n t t h i s v e n d i n g m a c h i n e b y T f l i p- f l o p s . W r i t e d o w n o n l y t h e n e x t- s t a t e a n d o u t p u t f u n c t i o n s . ( 1 % ) ( E i t h e r a M o o r e o r M e a l y m a c h i n e c a n d o ) 9 9- 4 . S e q u e n c e D e t e c t o r ( 1 5 % ) D e s i g n a s e q u e n c e d e t e c t o r w h i c h i n v e s t i g a t e s a n i n p u t s e q u e n c e X a n d p r o d u c e s a n o u t p u t Z = 1 f o r a n y i n p u t s e q u e n c e e n d i n g w i t h " 1 " . U s e T f l i p- f l o p f o r t h e f i r s t s t a t e ( Q 1 ) a n d J- K f l i p- f l o p f o r t h e s e c o n d s t a t e ( Q ) t o i m p l e m e n t t h e d e t e c t o r i n M e a l y m a c h i n e a n d s h o w a ) . M i n i m i z e d s t a t e d i a g r a m ( 5 % ) b...
View Full Document

This note was uploaded on 09/16/2010 for the course ELEC 151 taught by Professor Cy during the Spring '10 term at HKUST.

Page1 / 3

02_old_final - E L E C 1 5 1 P a s t F i n a l E x a m Q u e s t i o n s 1 6 9 9 1 S t a t e R e d u c t i o n 1 5 G i v e n a s t a t e t r a n s

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online