diff --git a/README.md b/README.md index e617736..63b71c7 100644 --- a/README.md +++ b/README.md @@ -30,17 +30,10 @@ To load and run the created model (`<example>.json`). cargo run -- -model <example>.json ``` -Alternatively, you can run the `mips` example from the `mips` folder. +Alternatively, you can run a single cycle `mips` model from the `mips-lib` folder. ```shell -cd mips -cargo run --example mips -``` - -And consequently run the created model (`mips.json`). - -```shell -cd mips # if not already done +cd mips-lib cargo run ``` diff --git a/mips-lib/mips_singel_cycle.json b/mips-lib/mips_single_cycle.json similarity index 100% rename from mips-lib/mips_singel_cycle.json rename to mips-lib/mips_single_cycle.json diff --git a/mips-lib/src/main.rs b/mips-lib/src/main.rs index 5a9e989..a1ba62e 100644 --- a/mips-lib/src/main.rs +++ b/mips-lib/src/main.rs @@ -1,4 +1,7 @@ use clap::Parser; +// The trait impls from here are used dynamically when json is loaded, so this is actually used +#[allow(unused_imports)] +use mips_lib::*; use std::path::PathBuf; #[cfg(feature = "gui-egui")] use syncrim::gui_egui::editor::Library; @@ -8,7 +11,7 @@ use syncrim::{common::ComponentStore, fern::fern_setup}; #[command(author, version, about, long_about = None)] struct Args { /// Path to the model to load on startup - #[arg(short, long, default_value = "mips_singel_cycle.json")] + #[arg(short, long, default_value = "mips_single_cycle.json")] model: String, }