mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #1191 from david-sawatzke/dev/doc_atomic_writes
Fix generation of documentation of `atomic_write` CSRStorage
This commit is contained in:
commit
0711998dab
1 changed files with 3 additions and 3 deletions
|
@ -346,10 +346,10 @@ class DocumentedCSRRegion:
|
|||
sub_name = self.name.upper() + "_" + name
|
||||
bits_str = "Bits {}-{} of `{}`.".format(start, start+length, full_name)
|
||||
if atomic_write:
|
||||
if i == (range(len(csr.simple_csrs))-1):
|
||||
bits_str += "Writing this register triggers an update of " + full_name
|
||||
if i == (len(csr.simple_csrs)-1):
|
||||
bits_str += " Writing this register triggers an update of `" + full_name + "`."
|
||||
else:
|
||||
bits_str += "The value won't take effect until `" + full_name + "0` is written."
|
||||
bits_str += " The value won't take effect until `" + full_name + "0` is written."
|
||||
if i == 0:
|
||||
d = description
|
||||
if description is None:
|
||||
|
|
Loading…
Reference in a new issue