rafimiet
Member level 5
Is it possible to alter specific bits of a RAM location?
For example: A RAM location has some contents(say 00011000), I need to add 4(100) to the contents i.e the contents will be changed to (00011100). Can I just directly invert 2nd bit of the RAM? The only way I know is to generate address of that location in one cycle, in next cycle we will get the contents and alter then and write them back. This consumes two clock cycles. If we can directly send '1' to the second bit location without altering the other bits, it may save a clock cycle(if possible)
For example: A RAM location has some contents(say 00011000), I need to add 4(100) to the contents i.e the contents will be changed to (00011100). Can I just directly invert 2nd bit of the RAM? The only way I know is to generate address of that location in one cycle, in next cycle we will get the contents and alter then and write them back. This consumes two clock cycles. If we can directly send '1' to the second bit location without altering the other bits, it may save a clock cycle(if possible)