Skip to content

Commit

Permalink
Finish giving up on fud
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanuppal committed Aug 28, 2024
1 parent 37a16d6 commit 62060d6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions fud2/scripts/tb.rhai
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import "calyx" as calyx;
// import "calyx" as calyx;
//
// let tb_state = state("tb", []);
//
// fn tb_setup(e) {
// e.config_var("calyx-tb-exe", "tb.exe");
// e.config_var("calyx-tb-test", "tb.test");
// e.config_var("calyx-tb-config-file", "tb.config-file");
// e.config_var_or("calyx-tb-flags", "tb.flags", "");
// e.config_var_or("calyx-tb-using", "tb.using");
// // e.rule("verilog-to-tb", "$calyx-tb-exe $in --test $caller-dir/$calyx-tb-test --using $calyx-tb-using --config $calyx-tb-config-file $calyx-tb-flags");
// }

let tb_state = state("tb", []);

fn tb_setup(e) {
e.config_var("calyx-tb-exe", "tb.exe");
e.config_var("calyx-tb-test", "tb.test");
e.config_var("calyx-tb-config-file", "tb.config-file");
e.config_var_or("calyx-tb-flags", "tb.flags", "");
e.config_var_or("calyx-tb-using", "tb.using");
e.rule("verilog-to-tb", "$calyx-tb-exe $in --test $caller-dir/$calyx-tb-test --using $calyx-tb-using --config $calyx-tb-config-file $calyx-tb-flags");
}

rule([tb_setup], calyx::verilog_state, tb_state, "verilog-to-tb");
// rule([tb_setup], calyx::verilog_state, tb_state, "verilog-to-tb");

0 comments on commit 62060d6

Please sign in to comment.