-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Injection into Arbitrary Types #20
Comments
Unless you want to enable direct instantiation of an injector in Chisel code, I don't think this is necessary, as transforming arbitrary Also, you don't need to include a generator for the |
This is tricky as we're using the injectors only in FIRRTL, but we are writing them in Chisel. They should be as useful as possible outside of our narrow use case, i.e., I think it's beneficial if they're normal Chisel modules that you can interact with and use in your design. A user may want to use the fault injectors that the Does |
When I tried serializing a |
Related to #14, #18, an injector should be an injector into arbitrary
Data
, not an injector into a flattenedUInt
. Roughly, the following should be what anInjectorIo
is:This introduces complications into inline compilation as the type that you want to inject into should be some Chisel
Data
. However, this information is lost at the FIRRTL level. The fault instrumentation annotations can be modified to encode information about the underlying type that will be injected into. Alternatively, the type could be rebuilt from the component. The latter is complicated, but the former is, too. The former requires, I think, the capability to serialize a() => Data
function in an annotation.The text was updated successfully, but these errors were encountered: