Skip to content

Commit

Permalink
Merge branch 'master' into hippomenes
Browse files Browse the repository at this point in the history
  • Loading branch information
onsdagens authored Jun 4, 2024
2 parents 8ab6260 + b01e500 commit 83e83c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 59 deletions.
59 changes: 0 additions & 59 deletions riscv/examples/riscv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,60 +126,6 @@ fn main() {
}
i += 1
}
// let mut i = 0;
// for component in store.clone() {
// if component.get_id_ports().0 == "clic" {
// store.remove(i);
// }
// i += 1
// }
// store.push(RVMem::rc_new_from_bytes(
// "data_memory",
// (1540.0, 900.0),
// 100.0,
// 100.0,
// false,
// Input::new("reg_file", "reg_b"),
// Input::new("alu", "result_o"),
// Input::new("decoder", "data_mem_ctrl"),
// Input::new("decoder", "data_se"),
// Input::new("decoder", "data_mem_size"),
// Input::new("clic", "mem_int_addr"),
// data_mem,
// range,
// ));
// store.push(Rc::new(InstrMem {
// width: 200.0,
// height: 100.0,
// id: "instr_mem".to_string(),
// pos: (650.0, 900.0),
// bytes: instr_mem,
// breakpoints: Rc::new(RefCell::new(HashSet::new())),
// le: true,
// pc: Input::new("reg", "out"),
// range: Range {
// start: 0,
// end: 0x2000,
// },
// symbols: memory.symbols,
// }));
// store.push(Rc::new(CLIC::new(
// "clic".to_string(),
// (1660.0, 900.0),
// 100.0,
// 100.0,
// Input::new("reg_file", "reg_b"),
// Input::new("alu", "result_o"),
// Input::new("decoder", "data_mem_ctrl"),
// Input::new("decoder", "data_mem_size"),
// Input::new("csr_mux", "out"),
// Input::new("decoder", "csr_addr"),
// Input::new("decoder", "csr_ctl"),
// Input::new("decoder", "mret"),
// Input::new("pc_adder", "out"),
// Input::new("pc_adder", "out"),
// //Input::new("pc_adder_mux", "out"),
// )));
cs.store = store;
#[cfg(feature = "gui-egui")]
{
Expand Down Expand Up @@ -295,16 +241,11 @@ fn fern_setup_riscv() {
))
})
.level_for("riscv::components::clic", log::LevelFilter::Trace)
//.level_for("syncrim::components::mux", log::LevelFilter::Trace)
.level(log::LevelFilter::Error);

// - and per-module overrides
#[cfg(feature = "gui-vizia")]
let f = f
//.level_for("riscv::components::instr_mem", LevelFilter::Trace)
//.level_for("riscv::components::clic", LevelFilter::Trace)
//.level_for("riscv::components::mem", LevelFilter::Trace)
//.level_for("syncrim::simulator", LevelFilter::Trace)
.level_for("riscv::gui_egui::components::instr_mem", LevelFilter::Trace);

f
Expand Down
2 changes: 2 additions & 0 deletions src/simulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ impl Simulator {
trace!("--- topologically ordered graph \n{:?}", top);
//two passes, first add all sequential roots
let mut ordered_components = vec![];
//two passes ensure the sorted list of nodes always starts with ALL of the roots
//first push the sequential components, eg. graph roots
for node in &top {
#[allow(suspicious_double_ref_op)]
let c = (**node_comp.get(node).unwrap()).clone();
Expand Down

0 comments on commit 83e83c4

Please sign in to comment.