Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

DTM NOP overwrites a word in Debug RAM #10

Open
brabect1 opened this issue Sep 22, 2018 · 0 comments
Open

DTM NOP overwrites a word in Debug RAM #10

brabect1 opened this issue Sep 22, 2018 · 0 comments

Comments

@brabect1
Copy link

Modules accessed through DTM are chip selected based only on DTM address field. In case of Debug RAM, the other control signal is RD (read/not write). RD maps to DTM Read operation, meaning that any other operation (e.g. NOP) will cause a write into DRAM.

wire dtm_req_sel_dbgram = (dtm_req_bits_addr[4:3] == 2'b0) & (~(dtm_req_bits_addr[2:0] == 3'b111));//0x00-0x06

The issue exploits the case for the Debug RAM, but other components may be affected too.

The fix is to condition DTM chip selects by DTM valid read or write operation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant