Skip to content
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

Access peripheral property from other peripheral while using Just-in-Time compile #548

Closed
Mes-ser opened this issue Nov 13, 2023 · 1 comment

Comments

@Mes-ser
Copy link

Mes-ser commented Nov 13, 2023

Lest assume we have Peripheral_1 and Peripheral_2
Both peripherals are in the same namespace Antmicro.Renode.Peripherals.Miscellaneous
In datasheet Peripheral_1 use value that is set in Peripheral_2
I want to access Peripheral_2 within Peripheral_1
I use Include method in .resc file to compile my peripherals written in c#

  1. tried to provide Peripheral_2 object in Peripheral_1 constructor, but renode throw error:

The type or namespace name 'Peripheral_2' could not be found. Are you missing an assembly reference?

  1. Used BUS.ReadByte but this will trigger Read from peripheral, so it's not ideal solution

My questions:

  1. Is there a way to provide renode with names/types while using JIT compile?
  2. If no, is there a way to reference to value from other peripheral?
@Mes-ser
Copy link
Author

Mes-ser commented Jan 20, 2024

Resolved

EnsureTypeIsLoaded

After .cs file with peripheral / interface include

@Mes-ser Mes-ser closed this as completed Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant