See figure for problem statement, as well as my attempt.
I tried to come up with this truth table on my own from figure 2 but I couldn't do it.
I couldn't see what "k" is or how to use it. So when I read this truth table of course I don't know what "h" is either, and how to use it.
The only childish sort of logical reasoning I could come up with for this is truth table is that when Left = 0, and Right = 1, the circuit will shift the input vector W one bit to the right.
So my output should be,
W0W3W2W1
Why does k contain W0? The only way I can remember what to write is if I ask myself, "When I shift my circuit either left or right what bit (In this case, W0) "falls" into the next column? We can see that the W0 bit will fall into the "k" column.
Likewise for the case Left = 1 and Right = 0.
Can someone explain this stuff to me. I've tried the question numerous times even after seeing the solution but I can never work my way to the same solution without referencing it.
Thanks again.
I tried to come up with this truth table on my own from figure 2 but I couldn't do it.
I couldn't see what "k" is or how to use it. So when I read this truth table of course I don't know what "h" is either, and how to use it.
The only childish sort of logical reasoning I could come up with for this is truth table is that when Left = 0, and Right = 1, the circuit will shift the input vector W one bit to the right.
So my output should be,
W0W3W2W1
Why does k contain W0? The only way I can remember what to write is if I ask myself, "When I shift my circuit either left or right what bit (In this case, W0) "falls" into the next column? We can see that the W0 bit will fall into the "k" column.
Likewise for the case Left = 1 and Right = 0.
Can someone explain this stuff to me. I've tried the question numerous times even after seeing the solution but I can never work my way to the same solution without referencing it.
Thanks again.
Attachments
-
109.8 KB Views: 184
-
45.1 KB Views: 153