0% found this document useful (0 votes)
116 views2 pages

Part 2. ASM CHART For Displaying The Number of People in A Room

This document contains two ASM charts. The first chart displays the number of people in a room by incrementing or decrementing a counter P when buttons X or Y are pressed. The second chart is for a 2-bit binary multiplier that initializes registers for multiplicand B and multiplier Q, a sequence counter P, and a carry flip-flop C. It then shifts the registers and carry flip-flop right by one bit and adds the multiplicand B to the registers if the least significant bit of the multiplier is 1.

Uploaded by

April Saccuan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
116 views2 pages

Part 2. ASM CHART For Displaying The Number of People in A Room

This document contains two ASM charts. The first chart displays the number of people in a room by incrementing or decrementing a counter P when buttons X or Y are pressed. The second chart is for a 2-bit binary multiplier that initializes registers for multiplicand B and multiplier Q, a sequence counter P, and a carry flip-flop C. It then shifts the registers and carry flip-flop right by one bit and adds the multiplicand B to the registers if the least significant bit of the multiplier is 1.

Uploaded by

April Saccuan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Part 2.

ASM
CHART for
displaying the
number of
people in a
room

reset

S_idle:
Ready

S_inc:
P<-P+1

S_dec:
P<-P-1

Part I. ASM
CHART of 2-bit
Binary
Multiplier

reset

S_idle:
Ready

Start
1
Register A
Carry flip-flop C
Multiplicand B
Multiplier Q
Sequence Counter P

A <- A+1
C <- 0
B <- multiplicand
Q <- multiplier
P <- n

S_add:
P<-P+1

Q[0]

S_shift:
[C,A,Q] <- [C,A,Q]
>>1
*17 bit register shifts
to the right by one bit

Zero

[C,A] <- A+B

You might also like