Fix generation of documentation of `atomic_write` CSRStorage
Can't decrement a range by 1, this (probably) never worked. Also improves the generated text.
This commit is contained in:
parent
c13be522ce
commit
a981f935f2
|
@ -346,10 +346,10 @@ class DocumentedCSRRegion:
|
||||||
sub_name = self.name.upper() + "_" + name
|
sub_name = self.name.upper() + "_" + name
|
||||||
bits_str = "Bits {}-{} of `{}`.".format(start, start+length, full_name)
|
bits_str = "Bits {}-{} of `{}`.".format(start, start+length, full_name)
|
||||||
if atomic_write:
|
if atomic_write:
|
||||||
if i == (range(len(csr.simple_csrs))-1):
|
if i == (len(csr.simple_csrs)-1):
|
||||||
bits_str += "Writing this register triggers an update of " + full_name
|
bits_str += " Writing this register triggers an update of `" + full_name + "`."
|
||||||
else:
|
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:
|
if i == 0:
|
||||||
d = description
|
d = description
|
||||||
if description is None:
|
if description is None:
|
||||||
|
|
Loading…
Reference in New Issue