The following system is designed such that it outputs the average of the most recent two data input samples. The system has an 8-bit unsigned data input I and an 8-bit unsigned output. The data input is sampled when a single bit input S changes from 0 to 1. Fill in the blanks and of the diagram with appropriate S input (Note: Please enter the answer as S or S', nothing else would be accepted as answer.) Inputs: I (8 bits), S (bit) Outputs: avg (8 bits) Local Registers: Prevreg (8 bits), Ireg (8 bits), avgreg (8 bits) A Init Prevreg: 0 Ireg: 0 avgreg: 0 B Wait D E Prevreg :- Ireg Ireg := I avgreg:= (Prevreg +Ireg)/2 Sample WaitLow

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 4E
icon
Related questions
Question
The following system is designed such that it outputs the average of the most recent
two data input samples. The system has an 8-bit unsigned data input I and an 8-bit
unsigned output. The data input is sampled when a single bit input S changes from 0
to 1.
Fill in the blanks
and
of the diagram with
appropriate S input (Note: Please enter the answer as S or S', nothing else would be
accepted as answer.)
Inputs: I (8 bits), S (bit)
Outputs: avg (8 bits)
Local Registers: Prevreg (8 bits), Ireg (8 bits),
avgreg (8 bits)
A
Init
Prevreg :- 0
Ireg: 0
avgreg: 0
B
Wait
E
Prevreg :- Ireg
Ireg := I
avgreg:=
(Prevreg + Ireg)/2
Sample
WaitLow
Transcribed Image Text:The following system is designed such that it outputs the average of the most recent two data input samples. The system has an 8-bit unsigned data input I and an 8-bit unsigned output. The data input is sampled when a single bit input S changes from 0 to 1. Fill in the blanks and of the diagram with appropriate S input (Note: Please enter the answer as S or S', nothing else would be accepted as answer.) Inputs: I (8 bits), S (bit) Outputs: avg (8 bits) Local Registers: Prevreg (8 bits), Ireg (8 bits), avgreg (8 bits) A Init Prevreg :- 0 Ireg: 0 avgreg: 0 B Wait E Prevreg :- Ireg Ireg := I avgreg:= (Prevreg + Ireg)/2 Sample WaitLow
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning