Proof-of-concept scaffold for a MATLAB/Simulink R2026a shift-left workflow on a BLDC motor controller.
- Requirements Toolbox requirements with stage routing.
- GenAI-assisted requirement-to-test generation with provider-agnostic LLM configuration.
- Runtime selection between real HIL and simulated HIL fallback.
- Runtime selection between placeholder motor parameters and datasheet-driven parameters.
This workspace currently contains MATLAB-first source files plus placeholder binary artifacts for Simulink/Test/App Designer assets. Run the MATLAB setup script to replace the placeholders with real .slx, .reqx, .mldatx, and .mlapp artifacts in an environment that has the required toolboxes licensed.
- HIL mode:
cfg.hil.mode = "real"or"simulated"inconfig/pocConfig.m - LLM provider:
cfg.llm.provider = "openai" | "azureopenai" | "rest" | "auto" - Motor source:
cfg.motor.source = "placeholder" | "datasheet"
- MATLAB R2026a
- Simulink
- Simscape / Simscape Electrical
- Stateflow
- Control System Toolbox
- Model Predictive Control Toolbox
- Requirements Toolbox
- Simulink Test
- Simulink Coverage
- Simulink Design Verifier
- Embedded Coder
- Simulink Real-Time for real HIL, or the simulated HIL fallback configured here
- Edit
config/pocConfig.mfor your provider, HIL mode, and motor source. - Run
scripts/setupProject.m - Run
scripts/runMIL.m - Run
scripts/runSIL.m - Run
scripts/runHIL.m - Run
traceability/generateTraceabilityReport.m - Open the dashboard artifact in
results/
Set the environment variable LLM_API_KEY before running the GenAI pipeline. Provider-specific endpoint, model, deployment, and API version values are configured in config/pocConfig.m.
model/params/motorParams.m supports both placeholder values and loading real datasheet values from a file path at runtime.