Add old (without --timing) verilator test

This commit is contained in:
Nikolay Puzanov
2024-10-02 17:25:04 +03:00
parent 8b8f63105c
commit c277e3482a
17 changed files with 70 additions and 28 deletions

19
test-verilator4/shell.nix Normal file
View File

@@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
flags-file = "compile_flags.txt";
in
mkShell {
packages = [ gnumake verilator ];
shellHook = ''
echo -n > ${flags-file}
echo -DVM_TRACE=1 >> ${flags-file}
echo -xc++ >> ${flags-file}
echo -I./testbench >> ${flags-file}
echo -I${verilator}/share/verilator/include >> ${flags-file}
echo -I${clang}/resource-root/include >> ${flags-file}
echo -I${glibc.dev}/include >> ${flags-file}
'';
}