-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cider 2] Memory loading & dumps (#2041)
* partial checkpoint * partial checkpoint * external tool checkpoint * reorder the main construction for cider * minor tweaks * update the main method to not error out * simple tidying * another partial checkpoint * Update the construction of the main method and serialize the memory data dumps * make it possible to load in values to memory
- Loading branch information
1 parent
0adf64d
commit 16f7c3f
Showing
22 changed files
with
1,091 additions
and
286 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
pub(crate) mod flat_ir; | ||
pub mod flat_ir; | ||
pub mod primitives; | ||
pub(crate) mod structures; | ||
pub mod structures; | ||
pub(crate) mod text_utils; | ||
|
||
use structures::environment::{Environment, Simulator}; | ||
|
||
pub fn flat_main(ctx: &calyx_ir::Context) { | ||
let i_ctx = flat_ir::control::translator::translate(ctx); | ||
|
||
i_ctx.printer().print_program(); | ||
|
||
let env = Environment::new(&i_ctx); | ||
let mut sim = Simulator::new(env); | ||
sim._main_test() | ||
} |
Oops, something went wrong.