ProgBuf0 = 8'h20 and ProgBufSize = 5'h8, so the sum is 8'h28, but this constant is not an element of the dm_csr_e enum defined in dm_pkg.sv. So the tool reports a Warning about this.
Suggestion: Instead of above line 92 of dm_csrs.sv, would it make sense to simply add below line between lines 64 and 65 in dm_pkg.sv?
ProgBufEnd = 8'h28,
One more note: Is it correct that ProgBufEnd = ProgBuf0 + ProgBufSize, or should it rather be ProgBufEnd = ProgBuf0 + ProgBufSize - 1?
Reposting OpenTitan issue 2663:
While running LEC on
top_earlgrey
using scriptsyn_yosys.sh
, line 92 of dm_csrs.sv (see below) causes a warning:ProgBuf0 = 8'h20
andProgBufSize = 5'h8
, so the sum is8'h28
, but this constant is not an element of thedm_csr_e
enum defined in dm_pkg.sv. So the tool reports a Warning about this.Suggestion: Instead of above line 92 of dm_csrs.sv, would it make sense to simply add below line between lines 64 and 65 in dm_pkg.sv?
One more note: Is it correct that
ProgBufEnd = ProgBuf0 + ProgBufSize
, or should it rather beProgBufEnd = ProgBuf0 + ProgBufSize - 1
?