]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
TDC constraints (untested), needs smaller ADC regions
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Wed, 27 May 2015 17:24:02 +0000 (19:24 +0200)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Sat, 13 Jun 2015 15:37:05 +0000 (17:37 +0200)
ADC/compile_constraints.pl
ADC/trb3_periph_adc_constraints.lpf

index fae4e619a563145327d147bb9f0450bd491df2ef..92ece8379a70266ad5356464534748c2f2e23d0b 100755 (executable)
@@ -59,7 +59,9 @@ symlink "$back/../tdc_release/Adder_304.ngo", "Adder_304.ngo";
 chdir($script_dir);
 
 system("cp ../base/$TOPNAME.lpf $workdir/$TOPNAME.lpf");
-system("cat tdc_release/tdc_constraints_64.lpf >> $workdir/$TOPNAME.lpf") if $configSettings{'INCLUDE_TDC'};
+# channel placements already added in $TOPNAME_constraints.lpf file
+#system("cat tdc_release/tdc_constraints_64.lpf >> $workdir/$TOPNAME.lpf") if $configSettings{'INCLUDE_TDC'};
+system("cat tdc_release/unimportant_lines_constraints.lpf >> $workdir/$TOPNAME.lpf") if $configSettings{'INCLUDE_TDC'};
 system("cat ".$TOPNAME."_constraints.lpf >> $workdir/$TOPNAME.lpf");
 
 open FILE, "<$workdir/$TOPNAME.lpf" or die "Couldnt open file: $!";
@@ -67,7 +69,6 @@ my $lpf = join('', <FILE>);
 close FILE;
 
 $lpf =~ s#THE_TDC/#GEN_TDC.THE_TDC/#g;
-$lpf =~ s#GEN_TDC(.*)The_Buffer#GEN_TDC$1Buffer_64.The_Buffer#g;
 
 open FILE, ">$workdir/$TOPNAME.lpf" or die "Couldnt open file: $!";
 print FILE $lpf;
index 566542dca9bef8060100efa41c74cea866217e0e..0bb310b8a3e46560a95cef5744c278cb8f814fc6 100644 (file)
@@ -152,3 +152,37 @@ LOCATE UGROUP "THE_ADC_PROC_cfd_10_group" REGION "THE_ADC_PROC_cfd_10_region";
 UGROUP "THE_ADC_PROC_cfd_11_group" BLKNAME gen_reallogic.THE_ADC/gen_readout_cfd.gen_processors.11.THE_ADC_PROC;
 REGION "THE_ADC_PROC_cfd_11_region" "R7C155D" 49 27;
 LOCATE UGROUP "THE_ADC_PROC_cfd_11_group" REGION "THE_ADC_PROC_cfd_11_region";
+
+
+# TDC stuff, adapted from the original 64ch version
+# used Floorplanner to ensure overlap-free placement 
+# with ADC entities
+# the GEN_TDC prefix will be added by compile_constraints.pl
+
+UGROUP "EF_LT2" BBOX 10 51
+       BLKNAME THE_TDC/ReferenceChannel/Channel200
+       BLKNAME THE_TDC/ReferenceChannel/Buffer_128.The_Buffer
+       BLKNAME THE_TDC/GEN_Channels.1.Channels/Channel200
+       BLKNAME THE_TDC/GEN_Channels.1.Channels/Buffer_128.The_Buffer
+       ;
+LOCATE UGROUP "EF_LT2" SITE "R105C2D" ;
+
+UGROUP "Ref_Ch" BBOX 1 51 
+       BLKNAME THE_TDC/ReferenceChannel/Channel200/SimAdderNo.FC;
+LOCATE UGROUP "Ref_Ch" SITE "R111C2D" ;
+UGROUP "hitBuf_ref" BBOX 1 1
+       BLKNAME THE_TDC/hit_mux_ref;
+LOCATE UGROUP "hitBuf_ref" SITE "R112C4D" ;
+UGROUP "Ref_ff_en"  BBOX 1 1
+       BLKNAME THE_TDC/ReferenceChannel/Channel200/ff_array_en_1_i;
+LOCATE UGROUP "Ref_ff_en" SITE "R111C27D" ;
+#
+UGROUP "FC_1" BBOX 1 51 
+       BLKNAME THE_TDC/GEN_Channels.1.Channels/Channel200/SimAdderNo.FC;
+LOCATE UGROUP "FC_1" SITE "R113C2D" ;
+UGROUP "hitBuf_1" BBOX 1 1
+       BLKNAME THE_TDC/GEN_hit_mux.1.hit_mux_ch;
+LOCATE UGROUP "hitBuf_1" SITE "R114C4D" ;
+UGROUP "ff_en_1" BBOX 1 1
+       BLKNAME THE_TDC/GEN_Channels.1.Channels/Channel200/ff_array_en_1_i;
+LOCATE UGROUP "ff_en_1" SITE "R113C27D" ;