You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed instructions and CSRs in #291 (CRDs list things like instructions, CSRs, and traps that aren't in the configuration). Still need to fix traps and interrupts.
# @return [Boolean] Whether or not the length of the CSR depends on a runtime value
109
109
# (e.g., mstatus.SXL)
110
110
defdynamic_length?(design)
@@ -142,7 +142,7 @@ def min_length(design)
142
142
end
143
143
end
144
144
145
-
# @param design [Design] A configuration (can be nil if the lenth is not dependent on a config parameter)
145
+
# @param design [Design] The design (can be nil if the length is not dependent on a config parameter)
146
146
# @param effective_xlen [Integer] The effective xlen, needed since some fields change location with XLEN. If the field location is not determined by XLEN, then this parameter can be nil
147
147
# @return [Integer] Length, in bits, of the CSR, given effective_xlen
148
148
# @return [nil] if the length cannot be determined from the design (e.g., because SXLEN is unknown and +effective_xlen+ was not provided)
@@ -254,7 +254,7 @@ def length_cond64
254
254
end
255
255
end
256
256
257
-
# @param design [Design] A configuration
257
+
# @param design [Design] The design
258
258
# @return [String] Pretty-printed length string
259
259
deflength_pretty(design,effective_xlen=nil)
260
260
ifdynamic_length?(design)
@@ -306,7 +306,7 @@ def description_html
306
306
Asciidoctor.convertdescription
307
307
end
308
308
309
-
# @param design [Design] A configuration
309
+
# @param design [Design] The design
310
310
# @return [Array<CsrField>] All implemented fields for this CSR at the given effective XLEN, sorted by location (smallest location first)
311
311
# Excluded any fields that are defined by unimplemented extensions or a base that is not effective_xlen
0 commit comments