2021-09-01 17:30:59 -05:00
|
|
|
{ alliance-src, ... }:
|
|
|
|
|
2021-09-03 07:50:39 -05:00
|
|
|
{ stdenv, coriolis-unicorn, coriolis-cumulus, python2Packages, alliance, yosys }:
|
2021-09-03 07:29:44 -05:00
|
|
|
|
|
|
|
let
|
|
|
|
env = python2Packages.python.buildEnv.override {
|
2021-09-03 07:50:39 -05:00
|
|
|
extraLibs = [ coriolis-unicorn coriolis-cumulus ];
|
2021-09-03 07:29:44 -05:00
|
|
|
};
|
|
|
|
in stdenv.mkDerivation {
|
2021-09-01 17:30:59 -05:00
|
|
|
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";
|
|
|
|
}
|