From: Andreas Neiser Date: Tue, 2 Dec 2014 09:28:41 +0000 (+0100) Subject: CTS: Compile on lxhadeb07 does not work...Synplify cant handle missing component... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=fa91534ff47f9d20de1433dc94e687c891145864;p=trb3.git CTS: Compile on lxhadeb07 does not work...Synplify cant handle missing component declaration? --- diff --git a/cts/compile_central_gsi.pl b/cts/compile_central_gsi.pl index 860b8be..85e7631 100755 --- a/cts/compile_central_gsi.pl +++ b/cts/compile_central_gsi.pl @@ -22,6 +22,7 @@ my $lattice_bin_path = "$lattice_path/bin/lin64"; # note the lin or my $config_vhd = 'config_mainz_a2.vhd'; ################################################################################### +system("ln -f -s $config_vhd config.vhd"); system("./compile_constraints.pl"); symlink($CbmNetPath, '../cbmnet/cbmnet') unless (-e '../cbmnet/cbmnet'); @@ -47,17 +48,6 @@ my $DEVICENAME="LFE3-150EA"; my $PACKAGE="FPBGA1156"; my $SPEEDGRADE="8"; -my $WORKDIR = "workdir"; -unless(-d $WORKDIR) { - mkdir $WORKDIR or die "can't create workdir '$WORKDIR': $!"; - system ("cd workdir; ../../base/linkdesignfiles.sh; cd ..;"); - system ("ln -sfT ../tdc_release/Adder_304.ngo $WORKDIR/Adder_304.ngo"); - system ("cp ../base/mulipar_nodelist_example.txt $WORKDIR/nodelist.txt"); -} - -system("ln -sfT $lattice_path $WORKDIR/lattice-diamond"); -system("ln -f -s $config_vhd config.vhd"); - #generate timestamp my $t=time; my $fh = new FileHandle(">version.vhd"); @@ -86,7 +76,7 @@ my $c="$synplify_path/bin/synplify_premier_dp -batch $TOPNAME.prj"; $r=execute($c, "do_not_exit" ); -chdir $WORKDIR; +chdir './workdir'; $fh = new FileHandle("<$TOPNAME".".srr"); my @a = <$fh>; $fh -> close; diff --git a/cts/config_mainz_a2.vhd b/cts/config_mainz_a2.vhd index 5a75a41..55c4443 100644 --- a/cts/config_mainz_a2.vhd +++ b/cts/config_mainz_a2.vhd @@ -32,7 +32,7 @@ package config is constant USE_EXTERNAL_CLOCK : integer range c_NO to c_YES := c_NO; --Which external trigger module (ETM) to use? - constant INCLUDE_ETM : integer range c_NO to c_YES := c_NO; + constant INCLUDE_ETM : integer range c_NO to c_YES := c_YES; type ETM_CHOICE_type is (ETM_CHOICE_MBS_VULOM, ETM_CHOICE_MAINZ_A2, ETM_CHOICE_CBMNET); constant ETM_CHOICE : ETM_CHOICE_type := ETM_CHOICE_MAINZ_A2;