Forum Discussion
Altera_Forum
Honored Contributor
18 years agohow to clear the ram content in one clock?
hi all, I used RAM ip core or the RAM verilog code I written, and want to reset all the content of the memory to 0. I only find the way to write one zero at corresponding address of the RAM ...
Altera_Forum
Honored Contributor
18 years agoOne method, although expensive is to have a register bit for every ram location. When you write to the register, you write the register bit to '1', at aclr, you clear the entire register. Any reads with the control register bit =0, would read zero, otherwise they read their value.