Skip to content

Commit

Permalink
[nix] remove firrtl_black_box_resource_files.f
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer authored and Avimitin committed Aug 22, 2024
1 parent 8040ffb commit 8dfef77
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions nix/t1/rtl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ stdenvNoCC.mkDerivation {
firtool ${mlirbc}/${mlirbc.elaborateTarget}-${mlirbc.elaborateConfig}-lowered.mlirbc \
-o $out ${mfcArgs}
'' + lib.optionalString fixupFilelist ''
# For ipemu, there are also some manually generated system verilog file for test bench.
# Those files are now recorded in a individual file list.
# However, verilator still expect on "filelist.f" file to record all the system verilog file.
# Below is a fix that concat them into one file to make verilator happy.
echo "Fixing generated filelist.f"
cp $out/filelist.f original.f
cat $out/firrtl_black_box_resource_files.f original.f > $out/filelist.f
cat $out/firrtl_black_box_resource_files.f >> $out/filelist.f
rm $out/firrtl_black_box_resource_files.f
'';

meta.description = "All the elaborated system verilog files for ${mlirbc.elaborateTarget} with ${mlirbc.elaborateConfig} config.";
Expand Down

0 comments on commit 8dfef77

Please sign in to comment.