]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Just try with different diamond again
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Wed, 17 Jun 2015 16:11:13 +0000 (18:11 +0200)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Wed, 17 Jun 2015 16:11:13 +0000 (18:11 +0200)
ADC/compile_constraints.pl
ADC/compile_periph_gsi.pl
ADC/config.vhd

index 5c0b8c830533bc026c516945c8d54d90009af73c..cd1d711d5eb08adbca33bb2a709b82480b873559 100755 (executable)
@@ -69,6 +69,21 @@ my $lpf = join('', <FILE>);
 close FILE;
 
 $lpf =~ s#THE_TDC/#GEN_TDC.THE_TDC/#g;
+# only for TDC v1.6.3
+#$lpf =~ s#ff_array_en#ff_array_en_i#g;
+
+
+# make the LPF diamond 2.1 compatible
+# we assume that generate loops are all named with "gen_"
+sub replace_dot {
+  my @m = @_;
+  $m[1] =~ s/\./_/g;
+  return join("", @m);
+}
+$lpf =~ s#(BLKNAME\s+)(.+?)([;\s])#replace_dot($1,$2,$3)#eg;
+$lpf =~ s#(CELL\s+")(.+?)(")#replace_dot($1,$2,$3)#eg;
+$lpf =~ s#(NET\s+")(.+?)(")#replace_dot($1,$2,$3)#eg;
+
 
 open FILE, ">$workdir/$TOPNAME.lpf" or die "Couldnt open file: $!";
 print FILE $lpf;
index 80c3d64ccc69c9b6951a4b960664adb60a035bf5..05fb11eaea54d275d47fab3b3034d3d7619f6088 100755 (executable)
@@ -9,9 +9,9 @@ use FileHandle;
 ###################################################################################
 #Settings for this project
 my $TOPNAME                      = "trb3_periph_adc"; #Name of top-level entity
-my $lattice_path                 = '/opt/lattice/diamond/3.4_x64';
+my $lattice_path                 = '/opt/lattice/diamond/2.1_x64';
 my $lattice_bin_path             = "$lattice_path/bin/lin64"; # note the lin/lin64 at the end, no isfgpa needed
-my $synplify_path                = '/opt/synplicity/J-2014.09-SP2';
+my $synplify_path                = '/opt/synplicity/F-2012.03-SP1';
 my $lm_license_file_for_synplify = '27000@lxcad01.gsi.de';
 my $lm_license_file_for_par      = '1702@hadeb05.gsi.de';
 ###################################################################################
index b3db5e169e6a0ac4eefb392fae558b7e5a0699f0..b02066705717ad0c1b89c1549134ba26e5ffffb8 100644 (file)
@@ -37,7 +37,7 @@ package config is
   constant ADC_TRIGGER_LOGIC  : integer := c_YES;
   -- ADC channels may be 48 or 36, the latter for enabling compilation 
   -- with TDC and lattice diamond version >2.1
-  constant ADC_CHANNELS       : integer := 36;
+  constant ADC_CHANNELS       : integer := 48;
 
   --Include the TDC (only useful for CFD readout mode) 
   constant INCLUDE_TDC : integer := c_YES;