Deprecate signal.attrs[x] = y
, use platform.add_signal_attribute(signal, x, y)
instead
#1466
Labels
signal.attrs[x] = y
, use platform.add_signal_attribute(signal, x, y)
instead
#1466
This removes the last major source of mutability in the core HDL, and makes it possible to use the same component hierarchy to build several bitstreams with different attributes without the hazards of reusing a mutable attribute array. This will also solve the issue of
add_clock_constraint
adding akeep
attribute, mutating the passed signal.Additionally, we could extend this to non-
Signal
s but rather arbitraryValue
s, as NIR should be able to give them names as necessary. (Only allowingSignal
s is simpler though.)The text was updated successfully, but these errors were encountered: