Write a function called numActiveOdd Bits() that will accept an 8-bit std_logic_vector as an input and returns the number of odd bits containing a value of '1. Odd bits are bits number 1, 3, 5, and 7. The function returns an integer value. As examples, "11111000" would return 3, "10101111" would return 4, and "01010101" would return 0.

Electric Motor Control
10th Edition
ISBN:9781133702818
Author:Herman
Publisher:Herman
Chapter22: Sequence Control
Section: Chapter Questions
Problem 6SQ: Draw a symbol for a solid-state logic element AND.
icon
Related questions
Question

Question  777 ele
 
Full explain this question and text typing work only thanks

VHDL. no verilog please. asap

 
Write a function called numActiveOdd Bits() that will accept an 8-bit std_logic_vector
as an input and returns the number of odd bits containing a value of '1'. Odd bits are
bits number 1, 3, 5, and 7. The function returns an integer value. As examples,
"11111000" would return 3, "10101111" would return 4, and "01010101" would
return 0.
Transcribed Image Text:Write a function called numActiveOdd Bits() that will accept an 8-bit std_logic_vector as an input and returns the number of odd bits containing a value of '1'. Odd bits are bits number 1, 3, 5, and 7. The function returns an integer value. As examples, "11111000" would return 3, "10101111" would return 4, and "01010101" would return 0.
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Logic Gate and Its Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Electric Motor Control
Electric Motor Control
Electrical Engineering
ISBN:
9781133702818
Author:
Herman
Publisher:
CENGAGE L