Skip to content

Commit 30e5e79

Browse files
committedAug 31, 2017
cpu_interface: export CSR size instead of number of buswords in CSV
1 parent 3bd95ce commit 30e5e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎misoc/integration/cpu_interface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,6 @@ def get_csr_csv(regions):
295295
if not isinstance(obj, Memory):
296296
for csr in obj:
297297
nr = (csr.size + busword - 1)//busword
298-
r += "{}.{},0x{:08x},{},{}\n".format(name, csr.name, origin, nr, "ro" if is_readonly(csr) else "rw")
298+
r += "{}.{},0x{:08x},{},{}\n".format(name, csr.name, origin, csr.size, "ro" if is_readonly(csr) else "rw")
299299
origin += 4*nr
300300
return r

0 commit comments

Comments
 (0)
Please sign in to comment.