I am designing a 2-digit ascending counter with a RAM and a button in Proteus. Here's the functionality I want to implement:
When the button is pressed for the first time, the current counter output should be saved in the RAM at address 0.
When the button is pressed for the second time, the current counter output should be saved in the RAM at address 1.
When the button is pressed for the third time, the current counter output should be saved in the RAM at address 2.
When the button is pressed for the fourth time, the current counter output should be saved in the RAM at address 3.
When the button is pressed for the first time, the current counter output should be saved in the RAM at address 0.
When the button is pressed for the second time, the current counter output should be saved in the RAM at address 1.
When the button is pressed for the third time, the current counter output should be saved in the RAM at address 2.
When the button is pressed for the fourth time, the current counter output should be saved in the RAM at address 3.