]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Mon, 5 Sep 2011 17:06:45 +0000 (17:06 +0000)
committerhadeshyp <hadeshyp>
Mon, 5 Sep 2011 17:06:45 +0000 (17:06 +0000)
12 files changed:
base/compile_central_frankfurt.pl
base/compile_central_gsi.pl
base/compile_periph_frankfurt.pl
base/compile_periph_gsi.pl
base/trb3_central.lpf
base/trb3_central.prj
base/trb3_central.vhd
base/trb3_periph.lpf
base/trb3_periph.prj
base/trb3_periph.vhd
fpgatest/projects/Strategy1.sty
fpgatest/projects/trb3_central.ldf

index 7e2ddd79fb875451cf95a4600e77405e10a45506..750ca14f108fc69187eddd5a32c78e7a6483f31f 100755 (executable)
@@ -9,6 +9,7 @@ use strict;
 ###################################################################################
 #Settings for this project
 my $TOPNAME                      = "trb3_central";  #Name of top-level entity
+my $BasePath                     = "../base/";     #path to "base" directory
 my $lattice_path                 = '/d/sugar/lattice/diamond/1.3';
 my $synplify_path                = '/d/sugar/lattice/synplify/D-2010.03/';
 my $lm_license_file_for_synplify = "27000\@localhost";
@@ -34,11 +35,11 @@ $ENV{'LM_LICENSE_FILE'}=$lm_license_file_for_synplify;
 my $FAMILYNAME="LatticeECP3";
 my $DEVICENAME="LFE3-150EA";
 my $PACKAGE="FPBGA1156";
-my $SPEEDGRADE="7";
+my $SPEEDGRADE="8";
 
 
 #create full lpf file
-system("cp ../base/$TOPNAME.lpf workdir/$TOPNAME.lpf");
+system("cp $BasePath/$TOPNAME.lpf workdir/$TOPNAME.lpf");
 system("cat constraints_$TOPNAME.lpf >> workdir/$TOPNAME.lpf");
 
 #set -e
index 7e2ddd79fb875451cf95a4600e77405e10a45506..fc412cbccde079b66c1c91a38398e45cee8e92f7 100755 (executable)
@@ -34,7 +34,7 @@ $ENV{'LM_LICENSE_FILE'}=$lm_license_file_for_synplify;
 my $FAMILYNAME="LatticeECP3";
 my $DEVICENAME="LFE3-150EA";
 my $PACKAGE="FPBGA1156";
-my $SPEEDGRADE="7";
+my $SPEEDGRADE="8";
 
 
 #create full lpf file
index 8d9178ca9f93641c49a892b12a41889161d9c84d..8a06d8a434b7d4c925f850b3d418ee147cf0d590 100755 (executable)
@@ -35,7 +35,7 @@ $ENV{'LM_LICENSE_FILE'}=$lm_license_file_for_synplify;
 my $FAMILYNAME="LatticeECP3";
 my $DEVICENAME="LFE3-150EA";
 my $PACKAGE="FPBGA672";
-my $SPEEDGRADE="7";
+my $SPEEDGRADE="8";
 
 
 #create full lpf file
index 8d9178ca9f93641c49a892b12a41889161d9c84d..8a06d8a434b7d4c925f850b3d418ee147cf0d590 100755 (executable)
@@ -35,7 +35,7 @@ $ENV{'LM_LICENSE_FILE'}=$lm_license_file_for_synplify;
 my $FAMILYNAME="LatticeECP3";
 my $DEVICENAME="LFE3-150EA";
 my $PACKAGE="FPBGA672";
-my $SPEEDGRADE="7";
+my $SPEEDGRADE="8";
 
 
 #create full lpf file
index 80c8a2f9d689b3694577b9b3f9d866231378566c..2daaa777bbf04f0819d4bc8be4e86eb2468e6974 100644 (file)
@@ -2,6 +2,19 @@ BLOCK RESETPATHS ;
 BLOCK ASYNCPATHS ;
 BLOCK RD_DURING_WR_PATHS ;
 
+#################################################################
+# Basic Settings
+#################################################################
+
+  SYSCONFIG MCCLK_FREQ = 20;
+
+  FREQUENCY PORT CLK_PCLK_RIGHT 200 MHz;
+  FREQUENCY PORT CLK_PCLK_LEFT  200 MHz;
+  FREQUENCY PORT CLK_GPLL_RIGHT 125 MHz;
+  FREQUENCY PORT CLK_GPLL_LEFT  200 MHz;
+  FREQUENCY PORT CLK_EXT_3      10  MHz;
+  FREQUENCY PORT CLK_EXT_4      10  MHz;
+
 
 #################################################################
 # Clock I/O
index 7ba2894dd9e842eed59054bdb115e04a33e6e476..7d32ec30090da9884945c6afdae843e067e51399 100644 (file)
@@ -6,7 +6,7 @@ impl -add workdir -type fpga
 set_option -technology LATTICE-ECP3
 set_option -part LFE3_150EA
 set_option -package FN1156C
-set_option -speed_grade -7
+set_option -speed_grade -8
 set_option -part_companion ""
 
 # compilation/mapping options
@@ -54,10 +54,11 @@ impl -active "workdir"
 add_file -vhdl -lib work "version.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net_std.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net_components.vhd"
+add_file -vhdl -lib "work" "../base/trb3_components.vhd"
 
 add_file -vhdl -lib "work" "../base/cores/pll_in200_out100.vhd"
 add_file -vhdl -lib "work" "./trb3_central.vhd"
-add_file -vhdl -lib "work" "../base/trb3_components.vhd"
+
 
 
 
index 6967cbfcb306de617bdf77374995aa2af96ede46..24f49aa2586b837940031ba2deb2f523b71cd5ed 100644 (file)
@@ -16,8 +16,8 @@ entity trb3_central is
     CLK_EXT                        : in  std_logic_vector(4 downto 3); --from RJ45
     CLK_GPLL_LEFT                  : in  std_logic;  --Clock Manager 2/9, 200 MHz  <-- MAIN CLOCK
     CLK_GPLL_RIGHT                 : in  std_logic;  --Clock Manager 1/9, 125 MHz  <-- for GbE
-    CLK_PCLK_LEFT                  : in  std_logic;  --Clock Fan-out, 200 MHz      <-- for Serdes if GPLL doesn't work. Same oscillator as GPLL left!
-    CLK_PCLK_RIGHT                 : in  std_logic;  --Clock Fan-out, 200 MHz      <-- use this clock for BASIC tests!
+    CLK_PCLK_LEFT                  : in  std_logic;  --Clock Fan-out, 200/400 MHz 
+    CLK_PCLK_RIGHT                 : in  std_logic;  --Clock Fan-out, 200/400 MHz 
 
     --Trigger
     TRIGGER_LEFT                   : in  std_logic;  --left side trigger input from fan-out
@@ -78,7 +78,7 @@ entity trb3_central is
     FLASH_CS                       : out std_logic;
     FLASH_CIN                      : out std_logic;
     FLASH_DOUT                     : in  std_logic;
-    PROGRAMN                       : out std_logic; --reboot FPGA
+    PROGRAMN                       : out std_logic := '1'; --reboot FPGA
     
     --Misc
     ENPIRION_CLOCK                 : out std_logic;  --Clock for power supply, not necessary, floating
@@ -162,20 +162,20 @@ begin
 ---------------------------------------------------------------------------
 -- FPGA communication
 ---------------------------------------------------------------------------
-  FPGA1_COMM <= (others => '0');
-  FPGA2_COMM <= (others => '0');
-  FPGA3_COMM <= (others => '0');
-  FPGA4_COMM <= (others => '0');
+  FPGA1_COMM <= (others => 'Z');
+  FPGA2_COMM <= (others => 'Z');
+  FPGA3_COMM <= (others => 'Z');
+  FPGA4_COMM <= (others => 'Z');
 
-  FPGA1_TTL <= (others => '0');
-  FPGA2_TTL <= (others => '0');
-  FPGA3_TTL <= (others => '0');
-  FPGA4_TTL <= (others => '0');
+  FPGA1_TTL <= (others => 'Z');
+  FPGA2_TTL <= (others => 'Z');
+  FPGA3_TTL <= (others => 'Z');
+  FPGA4_TTL <= (others => 'Z');
 
-  FPGA1_CONNECTOR <= (others => '0');
-  FPGA2_CONNECTOR <= (others => '0');
-  FPGA3_CONNECTOR <= (others => '0');
-  FPGA4_CONNECTOR <= (others => '0');
+  FPGA1_CONNECTOR <= (others => 'Z');
+  FPGA2_CONNECTOR <= (others => 'Z');
+  FPGA3_CONNECTOR <= (others => 'Z');
+  FPGA4_CONNECTOR <= (others => 'Z');
 
 
 ---------------------------------------------------------------------------
@@ -184,7 +184,7 @@ begin
   FLASH_CLK <= '0';
   FLASH_CS  <= '0';
   FLASH_CIN <= '0';
-
+  PROGRAMN  <= '1';
 
 ---------------------------------------------------------------------------
 -- Big AddOn Connector
index 50e25dec046d00368fefa548e01e56b1a3441558..0bd781602eb118faa89a2344a8480079ebddc333 100644 (file)
@@ -2,6 +2,16 @@ BLOCK RESETPATHS ;
 BLOCK ASYNCPATHS ;
 BLOCK RD_DURING_WR_PATHS ;
 
+#################################################################
+# Basic Settings
+#################################################################
+
+  SYSCONFIG MCCLK_FREQ = 20;
+
+  FREQUENCY PORT CLK_PCLK_RIGHT 200 MHz;
+  FREQUENCY PORT CLK_PCLK_LEFT  200 MHz;
+  FREQUENCY PORT CLK_GPLL_RIGHT 100 MHz;
+  FREQUENCY PORT CLK_GPLL_LEFT  125 MHz;
 
 #################################################################
 # Clock I/O
index a594c99a0ceb01d97831048047ca232699b27244..2a8638114291c30f9b89ad98466da8920a7c68cc 100644 (file)
@@ -6,7 +6,7 @@ impl -add workdir -type fpga
 set_option -technology LATTICE-ECP3
 set_option -part LFE3_150EA
 set_option -package FN672C
-set_option -speed_grade -7
+set_option -speed_grade -8
 set_option -part_companion ""
 
 # compilation/mapping options
@@ -54,10 +54,11 @@ impl -active "workdir"
 add_file -vhdl -lib work "version.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net_std.vhd"
 add_file -vhdl -lib work "../../trbnet/trb_net_components.vhd"
+add_file -vhdl -lib "work" "../base/trb3_components.vhd"
 
 add_file -vhdl -lib "work" "../base/cores/pll_in200_out100.vhd"
 add_file -vhdl -lib "work" "./trb3_periph.vhd"
-add_file -vhdl -lib "work" "../base/trb3_components.vhd"
+
 
 
 
index ea90318fb850926a656916fa44890a5d744eecda..8f140da025f38eaaf71ca6de9b65d16e6414e931 100644 (file)
@@ -14,9 +14,9 @@ entity trb3_periph is
   port(
     --Clocks
     CLK_GPLL_LEFT                  : in  std_logic;  --Clock Manager 1/(2468), 125 MHz
-    CLK_GPLL_RIGHT                 : in  std_logic;  --Clock Manager 2/(2468), 200 MHz  <-- MAIN CLOCK
-    CLK_PCLK_LEFT                  : in  std_logic;  --Clock Fan-out, 200 MHz      <-- For TDC. Same oscillator as GPLL right!
-    CLK_PCLK_RIGHT                 : in  std_logic;  --Clock Fan-out, 200 MHz      <-- For TDC. Same oscillator as GPLL right!
+    CLK_GPLL_RIGHT                 : in  std_logic;  --Clock Manager 2/(2468), 200 MHz  <-- MAIN CLOCK for FPGA
+    CLK_PCLK_LEFT                  : in  std_logic;  --Clock Fan-out, 200/400 MHz <-- For TDC. Same oscillator as GPLL right!
+    CLK_PCLK_RIGHT                 : in  std_logic;  --Clock Fan-out, 200/400 MHz <-- For TDC. Same oscillator as GPLL right!
 
     --Trigger
     TRIGGER_LEFT                   : in  std_logic;  --left side trigger input from fan-out
@@ -100,6 +100,7 @@ architecture trb3_periph_arch of trb3_periph is
 
   signal clk_100_i   : std_logic; --clock for main logic, 100 MHz, via Clock Manager and internal PLL
   signal clk_200_i   : std_logic; --clock for logic at 200 MHz, via Clock Manager and bypassed PLL
+                                  --TDC clock is separate
   signal pll_lock    : std_logic; --Internal PLL locked. E.g. used to reset all internal logic.
 
   
index e5f3dce7fb2c4678cc37e216e2eeacf0843be2db..816c208ce85cbdf5aa19181f2b484af2e87ca201 100644 (file)
@@ -1,3 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE strategy>
-<Strategy version="1.0" predefined="0" description="" label="Strategy1"/>
+<Strategy version="1.0" predefined="0" description="" label="Strategy1">
+    <Property name="PROP_BIT_OutFormatBitGen_REF" value="Bit File (Binary)" time="0"/>
+</Strategy>
index d2e31d1be7d1443c068805ecba283bf490d16993..0735ae790705dd1b3b6979a825516d8586ed33fb 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<BaliProject version="1.3" title="trb3_central" device="LFE3-150EA-7FN672C" default_implementation="trb3_central">
+<BaliProject version="1.3" title="trb3_central" device="LFE3-150EA-7FN1156C" default_implementation="trb3_central">
     <Options/>
     <Implementation title="trb3_central" dir="trb3_central" description="trb3_central" default_strategy="Strategy1">
         <Options/>