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

New queueless VILLAS interface / improve real-time performance #316

Merged
merged 11 commits into from
Nov 8, 2024

Commits on Oct 10, 2024

  1. villas interface: improve real-time capability

    The original villas interface was not real-time capable because of the queue it uses. This commit creates an interface for villas interfaces, moves the old implementation to InterfaceQueued and adds a new queueless, threadless implementation InterfaceQueueless.
    
    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    48231f3 View commit details
    Browse the repository at this point in the history
  2. models: Add DC voltage source

    The DP_Ph1_VoltageSource always calculates a sinusoidal signal, even if we only want to set a DC value. This commit adds a DC generator for the model so it can be significantly faster if we do not need the sinusoidal signal.
    
    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    ac10fb2 View commit details
    Browse the repository at this point in the history
  3. simulation: add function that checks for overruns

    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    abe33d7 View commit details
    Browse the repository at this point in the history
  4. FpgaExample: use new villas interface and make logging optional.

    Speeds up simulation by several orders of magnitude
    
    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    a543ffc View commit details
    Browse the repository at this point in the history
  5. villas-interface: add InterfaceQueued.cpp to CMakeLists

    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    7767ba2 View commit details
    Browse the repository at this point in the history
  6. improve comments

    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    bd9e23e View commit details
    Browse the repository at this point in the history
  7. clang-format: fix comment style

    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    72e5f6d View commit details
    Browse the repository at this point in the history
  8. villas-interface: Do not throw uncaught exceptions in a destructor.

    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    a8d144d View commit details
    Browse the repository at this point in the history
  9. add DP_PH1_ProfileVoltageSource and use it for the villas / fpga inte…

    …rface
    
    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    5184630 View commit details
    Browse the repository at this point in the history
  10. VoltageSource: Create DCGenerator only if special setParameters is us…

    …ed and not always when the frequency is 0. This should avoid any regressions.
    
    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    0b8bc80 View commit details
    Browse the repository at this point in the history
  11. update VILLASnode version in Dockerfiles

    Signed-off-by: Niklas Eiling <[email protected]>
    n-eiling authored and m-mirz committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    de97ebb View commit details
    Browse the repository at this point in the history