- #1
perplexabot
Gold Member
- 329
- 5
Hi all.
The question says:
Use the RTL design process to design a system that 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 avg. The data input is sampled when a single-bit input S changes from 0 to 1. Choose internal bitwidths that prevent overflow.
I have two questions. Firstly, is the data input sent following a clock cycle? If not, how do you know when a new datum is sent?
Secondly, how can you tell if the first two bytes are the same byte or different bytes but with equivalent values?
Thank you
The question says:
Use the RTL design process to design a system that 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 avg. The data input is sampled when a single-bit input S changes from 0 to 1. Choose internal bitwidths that prevent overflow.
I have two questions. Firstly, is the data input sent following a clock cycle? If not, how do you know when a new datum is sent?
Secondly, how can you tell if the first two bytes are the same byte or different bytes but with equivalent values?
Thank you