Skip to content

Commit 278d09d

Browse files
author
Derek Hower
committed
Fix typo
1 parent 20a3092 commit 278d09d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arch_obj_models/csr.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def wavedrom_desc(arch_def, effective_xlen, exclude_unimplemented: false, option
535535

536536
desc["reg"] << { "bits" => n, type: 1 }
537537
end
538-
if arch_def.partially_configured? && arch_def.optional_in_cfg?(arch_def)
538+
if arch_def.partially_configured? && field.optional_in_cfg?(arch_def)
539539
desc["reg"] << { "bits" => field.location(arch_def, effective_xlen).size, "name" => field.name, type: optional_type }
540540
else
541541
desc["reg"] << { "bits" => field.location(arch_def, effective_xlen).size, "name" => field.name, type: 2 }

0 commit comments

Comments
 (0)