Access Millions of academic & study documents

State Machine

Content type
User Generated
Subject
Electrical Engineering
School
rutgers university new brunswick
Type
Homework
Showing Page:
1/17
TASK STATE MACHINE
Step By Step Solution:
Design an electronic combination lock state machine that will only open with
the code 188000283. First, convert the code to binary because you will need
the least 12 significant bits to open the lock. Use a decimal to binary converter
that can be found on Google.
Given, code in decimal = (188000283)
10
(188000283)
10
in binary: (1011001101001010100000011011)
2
Your design will require a 16 state, state machine in which 8 of the states will
be good and 8 will be not used. List the 16 states in binary order starting with
0000 and ending with 1111.
16 states in binary order 0000 to 1111 can be represented as follows:
Q3
Q2
Q1
Q0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
1
1
1
1

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/17
Use the least four significant bits of your binary code as your starting point.
Your next 8 bits will be your input to the machine. Starting with the 5th bit
(_4) and ending at 12th bit.
Taking 16 bits from the Least significant Bits of the Binary Code:
(1011001101001010100000011011)
2
We get:
Bit Number
Q3
Q2
Q1
Q0
X
b_0
0
0
0
0
1
b_1
0
0
0
1
1
b_2
0
0
1
0
0
b_3
0
0
1
1
1
b_4
0
1
0
0
1
b_5
0
1
0
1
0
b_6
0
1
1
0
0
b_7
0
1
1
1
0
b_8
1
0
0
0
0
b_9
1
0
0
1
0
b_10
1
0
1
0
0
b_11
1
0
1
1
1
b_12
1
1
0
0
0
b_13
1
1
0
1
1
b_14
1
1
1
0
0
b_15
1
1
1
1
1
Rows in red color are ‘good states’ or ‘valid states: b_4 to b_11
Rows in Cream color are ‘Bad states’ or invalid states: b_0 to b_3 and b_12 to
b_15

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/17

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 17 pages?
Access Now
Unformatted Attachment Preview
TASK – STATE MACHINE Step By Step Solution: Design an electronic combination lock state machine that will only open with the code 188000283. First, convert the code to binary because you will need the least 12 significant bits to open the lock. Use a decimal to binary converter that can be found on Google. Given, code in decimal = (188000283)10 (188000283)10 in binary: (1011001101001010100000011011)2 Your design will require a 16 state, state machine in which 8 of the states will be good and 8 will be not used. List the 16 states in binary order starting with 0000 and ending with 1111. 16 states in binary order 0000 to 1111 can be represented as follows: Q3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 Q2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 Q1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 Q0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Use the least four significant bits of your binary code as your starting point. Your next 8 bits will be your 𝑋 input to the machine. Starting with the 5th bit (𝑏_4) and ending at 12th bit. Taking 16 bits from the Least significant Bits of the Binary Code: (1011001101001010100000011011)2 We get: Bit Number b_0 b_1 b_2 b_3 b_4 b_5 b_6 b_7 b_8 b_9 b_10 b_11 b_12 b_13 b_14 b_15 Q3 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 Q2 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 Q1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 Q0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 X 1 1 0 1 1 0 0 0 0 0 0 1 0 1 0 1 Rows in red color are ‘good states’ or ‘valid states: b_4 to b_11 Rows in Cream color are ‘Bad states’ or invalid st ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4