Hey guys,
I'm trying to create a 4bit locking mechanism and I've got like a counter mechanism that says to which bit number, data must be stored.
I.e.: 1st I want to save data to first bit either 1 or 0, depending on the input. Then I want to save data to 2nd bit, 3rd and 4th bit. Each bit should be saved to it's own component.
And once I get all 4 bits settled I will send them to another component which unlock or lock the device. But that's not really important.
My question is, how do I store bit data to a component? I'm currently using Xilinx. Cheers
Attempt: I thought that if I make a double NOT gate component and circle the bit around, but there's probably a better way to do it?
I'm trying to create a 4bit locking mechanism and I've got like a counter mechanism that says to which bit number, data must be stored.
I.e.: 1st I want to save data to first bit either 1 or 0, depending on the input. Then I want to save data to 2nd bit, 3rd and 4th bit. Each bit should be saved to it's own component.
And once I get all 4 bits settled I will send them to another component which unlock or lock the device. But that's not really important.
My question is, how do I store bit data to a component? I'm currently using Xilinx. Cheers
Attempt: I thought that if I make a double NOT gate component and circle the bit around, but there's probably a better way to do it?
Last edited: