Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[being split up] Implement Rust FFI and testbench integration #2181

Closed
wants to merge 46 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
db4db7d
Initial tb
ethanuppal Jun 30, 2024
fae996a
fud2
ethanuppal Jun 30, 2024
5f81dc2
Fix
ethanuppal Jun 30, 2024
7f97267
Use my makefile gen library
ethanuppal Jul 1, 2024
5527210
Update tb
ethanuppal Jul 1, 2024
2042bb5
Add config system
ethanuppal Jul 2, 2024
68683d4
Switch to plugin model
ethanuppal Jul 2, 2024
0d2fd7c
fud2 works
ethanuppal Jul 2, 2024
4e479be
Add logging, work more on plugin support
ethanuppal Jul 3, 2024
aecec12
Update cocotb config
ethanuppal Jul 7, 2024
a9ebc44
Verilator works!
ethanuppal Jul 7, 2024
98f5a90
Fix
ethanuppal Jul 8, 2024
432ce20
Start FFI and custom calyx testbench
ethanuppal Jul 8, 2024
a52391c
Work on supporting backends
ethanuppal Jul 8, 2024
0e1f591
Clean up ffi and testbench
ethanuppal Jul 9, 2024
2702b32
Continue work on testbench; cider2 stubs in place
ethanuppal Jul 30, 2024
edfa8ad
Are my commits no longer verified?
ethanuppal Jul 31, 2024
d11f287
Add weird trait thing (forgot to commit)
ethanuppal Aug 1, 2024
30da407
I don't know how to use cider2
ethanuppal Aug 5, 2024
785d2dd
It works now! only for main components due to cider difficulties
ethanuppal Aug 26, 2024
78736fe
I give up on fud2
ethanuppal Aug 28, 2024
e3b57d3
Empty
ethanuppal Aug 28, 2024
37a16d6
Ok
ethanuppal Aug 28, 2024
62060d6
Finish giving up on fud
ethanuppal Aug 28, 2024
dc407ad
clippy
ethanuppal Aug 28, 2024
b6cf3ab
Fix nightly path stuff
ethanuppal Nov 6, 2024
f2de02c
Time to start cleanup
ethanuppal Nov 7, 2024
e0386da
Revert more fud2 stuff
ethanuppal Nov 7, 2024
e8cc729
clippy
ethanuppal Nov 7, 2024
a14dffc
The tool is really sus not working for no reason
ethanuppal Nov 7, 2024
ab62294
Copy in Cargo.lock?
ethanuppal Nov 8, 2024
b8d291a
Merge branch 'main' into tb
ethanuppal Nov 8, 2024
33b9686
Fix cider backend
ethanuppal Nov 8, 2024
a2ba4ac
Work on adding compile time port widths
ethanuppal Nov 8, 2024
8d6436d
Cleanup
ethanuppal Nov 8, 2024
6d64dce
Make minimally-sized clonable simulator
ethanuppal Nov 10, 2024
f9eda74
Backup commit
ethanuppal Nov 10, 2024
a8db168
clippy
ethanuppal Nov 10, 2024
8119c22
Working sample tests
ethanuppal Nov 10, 2024
911e2de
Fix macro hygiene
ethanuppal Nov 10, 2024
48f2cc6
Derive clone
ethanuppal Nov 11, 2024
454b29b
Split mut and ref impl blocks for interfaces
ethanuppal Nov 11, 2024
447b6f7
?
ethanuppal Nov 20, 2024
ee8eed6
Merge branch 'main' into tb
ethanuppal Nov 20, 2024
e868740
Ok thought I already did this...
ethanuppal Nov 20, 2024
fdd35d3
Remove bizarre ]e file
ethanuppal Nov 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fud2
  • Loading branch information
ethanuppal committed Aug 9, 2024
commit fae996a78b7975efc95b32a3ac7c580344cd180b
9 changes: 6 additions & 3 deletions fud2/src/lib.rs
Original file line number Diff line number Diff line change
@@ -86,9 +86,12 @@ fn setup_mrxl(
fn setup_tb(bld: &mut DriverBuilder, calyx: StateRef) {
let tb = bld.state("tb", &[]);
let tb_setup = bld.setup("Testbench executable", |e| {
e.var("calyx-tb-exe", "calyx-tb")?;
e.config_var("calyx-tb-tests", "tb.tests")?;
e.rule("calyx-to-tb", "$calyx-tb-exe ")?;
e.var("calyx-tb-exe", "tb")?;
e.config_var("calyx-tb-test", "tb.test")?; // todo multi input op
e.rule(
"calyx-to-tb",
"$calyx-tb-exe $in --test $calyx-tb-test --using cocotb",
)?;
Ok(())
});
bld.rule(&[tb_setup], calyx, tb, "calyx-to-tb");