From: Andreas Neiser Date: Wed, 27 May 2015 17:24:02 +0000 (+0200) Subject: TDC constraints (untested), needs smaller ADC regions X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=12f88764445b16f8bd35e420752be0866e4b912f;p=trb3.git TDC constraints (untested), needs smaller ADC regions --- diff --git a/ADC/compile_constraints.pl b/ADC/compile_constraints.pl index fae4e61..92ece83 100755 --- a/ADC/compile_constraints.pl +++ b/ADC/compile_constraints.pl @@ -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('', ); 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; diff --git a/ADC/trb3_periph_adc_constraints.lpf b/ADC/trb3_periph_adc_constraints.lpf index 566542d..0bb310b 100644 --- a/ADC/trb3_periph_adc_constraints.lpf +++ b/ADC/trb3_periph_adc_constraints.lpf @@ -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" ;