Skip to content

Commit

Permalink
Revert more fud2 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanuppal committed Nov 7, 2024
1 parent f2de02c commit e0386da
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 82 deletions.
14 changes: 0 additions & 14 deletions fud2/scripts/tb.rhai

This file was deleted.

17 changes: 0 additions & 17 deletions fud2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,6 @@ fn setup_mrxl(
(mrxl, mrxl_setup)
}

fn setup_tb(bld: &mut DriverBuilder, verilog: StateRef) {
let tb = bld.state("tb", &[]);
let tb_setup = bld.setup("Testbench executable", |e| {
e.var("calyx-tb-exe", "tb")?;
e.config_var("calyx-tb-test", "tb.test")?; // todo multi input op
e.config_var("calyx-tb-config-file", "tb.config-file")?;
e.rule(
"calyx-to-tb",
"$calyx-tb-exe $in --test $calyx-tb-test --using cocotb --config $calyx-tb-config-file",
)?;
Ok(())
});
bld.rule(&[tb_setup], verilog, tb, "test");
}

pub fn build_driver(bld: &mut DriverBuilder) {
// The verilog state
let verilog = bld.state("verilog", &["sv", "v"]);
Expand All @@ -108,8 +93,6 @@ pub fn build_driver(bld: &mut DriverBuilder) {
// MrXL.
setup_mrxl(bld, calyx);

setup_tb(bld, verilog);

// Shared machinery for RTL simulators.
let dat = bld.state("dat", &["json"]);
let vcd = bld.state("vcd", &["vcd"]);
Expand Down
51 changes: 0 additions & 51 deletions fud2/tests/snapshots/tests__test@calyx_cider-debug.snap

This file was deleted.

13 changes: 13 additions & 0 deletions fud2/tests/snapshots/tests__test@plan_verilog-to-tb.snap.new
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
source: fud2/tests/tests.rs
assertion_line: 66
description: "emit plan: verilog-to-tb"
---
build-tool = fud2
rule get-rsrc
command = $build-tool get-rsrc $out


build /output.ext: verilog-to-tb /input.ext

default /output.ext

0 comments on commit e0386da

Please sign in to comment.