2021-09-01 17:30:59 -05:00
|
|
|
{ alliance-src, ... }:
|
|
|
|
|
2021-09-02 17:39:29 -05:00
|
|
|
{ stdenv, coriolis-unicorn, alliance, yosys }:
|
2021-09-01 17:30:59 -05:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "alliance-check-toolkit";
|
|
|
|
version = builtins.substring 0 8 alliance-src.lastModifiedDate;
|
|
|
|
src = alliance-src;
|
|
|
|
|
2021-09-02 17:39:29 -05:00
|
|
|
nativeBuildInputs = [ alliance coriolis-unicorn yosys ];
|
2021-09-02 04:54:51 -05:00
|
|
|
|
|
|
|
YOSYS_TOP = "${yosys}";
|
2021-09-02 17:39:29 -05:00
|
|
|
ALLIANCE_TOP = "${alliance}";
|
|
|
|
CORIOLIS_TOP = "${coriolis-unicorn}";
|
|
|
|
# The user configuration for verhaegs is empty,
|
|
|
|
# which is why we use it.
|
|
|
|
USER = "verhaegs";
|
2021-09-01 17:30:59 -05:00
|
|
|
|
|
|
|
configurePhase = "true";
|
|
|
|
buildPhase = ''
|
|
|
|
cd benchs/adder/cmos
|
|
|
|
echo 'doing make druc'
|
|
|
|
make druc
|
|
|
|
echo 'doing make lvx'
|
|
|
|
make lvx
|
|
|
|
'';
|
|
|
|
installPhase = "true";
|
|
|
|
}
|