Skip to content

Commit

Permalink
Add suggested code
Browse files Browse the repository at this point in the history
  • Loading branch information
thiskappaisgrey committed Dec 16, 2023
1 parent 790e1dc commit 7e7928b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions backends/lakeroad/example.ys
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module test(input [1:0] a, input b, output o);
endmodule
EOF

# Write output to file instead of stdout
write_lakeroad file.egg
# Write output to stdout
# write_lakeroad
write_lakeroad
# Write output to file.egg
write_lakeroad file.egg
!rm file.egg
3 changes: 1 addition & 2 deletions backends/lakeroad/lakeroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1716,8 +1716,7 @@ struct BtorBackend : public Backend {
log_header(design, "Executing Lakeroad egglog backend.\n");
RTLIL::Module *topmod = design->top_module();

// Copied from firrtl code. Not sure why "filename" is not set ever
// even when I pass "write_lakeroad hello.egg" or something
// Copied from firrtl code.
size_t argidx = args.size();

if (filename == "") {
Expand Down

0 comments on commit 7e7928b

Please sign in to comment.