tgingold-cern / cheby

GNU General Public License v3.0
7 stars 4 forks source link

Lock writable register #25

Closed lorenzschmid closed 8 months ago

lorenzschmid commented 8 months ago

Setting the lock attribute to true, a writable register or field can be temporarily locked. While being locked, the register or field maintains its current value and ignores any write requests. Furthermore, while being locked, the output can also be altered to a predetermined value set via lock-value attribute. The locking behavior is controlled via an external signal (defined through the lock-port attribute on the memory map).

We require such a feature, when our logic is operating in a test mode, i.e. in scan test: Some registers control external logic, whose control we require to remain constant.

lorenzschmid commented 8 months ago

It just occurred to me that I have not added any tests yet. Will do so first.

tgingold-cern commented 8 months ago

ok!