Update RAM simulation model

- change a way to make signals delayed (correct?)
- add parameter to control the delay