Hey guys, I am new here at this board.. i want to ask you something and i hope that you can help me.
I need help for a task at the university for my exams. i have to write a code which fulfils this here..:
it is given an input-data and an i-mask. you get I-Data as your input with 3 bits. You have to count the ones from I-Data If the mask was set. for example.. when you get 111 in so you have to count the three ones... then you get for example 001 now you have to count the four ones. your Exit is named GENERIC and it has an indefinite lenght as vector.. Here you should write the number of your ones, if it is longer than 3 bits, an overflow at the output should be set.
Question
buraklar
Hey guys, I am new here at this board.. i want to ask you something and i hope that you can help me.
I need help for a task at the university for my exams. i have to write a code which fulfils this here..:
it is given an input-data and an i-mask. you get I-Data as your input with 3 bits. You have to count the ones from I-Data If the mask was set. for example.. when you get 111 in so you have to count the three ones... then you get for example 001 now you have to count the four ones. your Exit is named GENERIC and it has an indefinite lenght as vector.. Here you should write the number of your ones, if it is longer than 3 bits, an overflow at the output should be set.
could someone program that please
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.