Explore BrainMass
Share

Advanced Boolean Equation Language

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Write an ABEL program for a combinational logic function with five input bits N4-N0) representing an integer between 0 and 31 and two outputs M3 and M5 to indicate if the number is a multiple of 3 or 5.

© BrainMass Inc. brainmass.com October 25, 2018, 8:28 am ad1c9bdddf
https://brainmass.com/math/boolean-algebra/advanced-boolean-equation-language-541726

Solution Preview

let num is 5 bit number:

for divisiblity by 3:

start from 0th bit and count the number of 1s alternatively i.e. 0th bit, 2ndbit, 4th bit%u2026.

now start from 1st bit and count the number of 1s alternatively i.e. 1st bit, 3rdbit, 5th bit%u2026.

if these two counts are equal,then num is div by 3

for divisiblity by 5:

First split the number into odd and even bits (I'm calling "even" the bits corresponding ...

Solution Summary

The solution gives detailed explanations on writting an ABEL program for a combinational logic function with five input bits N4-N0) representing an integer between 0 and 31 and two outputs M3 and M5 to indicate if the number is a multiple of 3 or 5. And my complete is included in the answer also.

$2.19
See Also This Related BrainMass Solution

Undecidability Theorem

According to the undecidability theorem, most software quality properties are not provable. Therefore, what kind of testing techniques do we use to achieve software quality?

View Full Posting Details