Skip to content

Commit

Permalink
[HACK] revert after circt PRINTF_FD lands
Browse files Browse the repository at this point in the history
  • Loading branch information
FanShupei committed Dec 19, 2024
1 parent 3f993e9 commit 8aa8019
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nix/t1/conversion/mlirbc-to-sv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ stdenvNoCC.mkDerivation {
echo "[nix] converting mlirbc to system verilog with args: $firtoolArgs"
$builder -c "$firtoolArgs"
# TODO: remove it after circt PRINTF_FD lands
if [ -f "$out/TestBench.sv" ]; then
# replace "$fwrite(32'h80000002" -> "fwrite(`PRINTF_FD"
sed -i -e "s/\\\$fwrite[(]32'h80000002/\\\$fwrite(\`PRINTF_FD/g" "$out/TestBench.sv"
fi
# https://github.com/llvm/circt/pull/7543
echo "[nix] fixing generated filelist.f"
pushd $out >/dev/null
Expand Down

0 comments on commit 8aa8019

Please sign in to comment.