Skip to content

Commit

Permalink
Merge pull request #90 from perlindgren/mips-fixes
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
Spooky-Firefox authored Oct 3, 2024
2 parents ff64ab2 + 2c91627 commit f595f09
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
File renamed without changes.
5 changes: 4 additions & 1 deletion mips-lib/src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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,
}

Expand Down

0 comments on commit f595f09

Please sign in to comment.