]> cvs.zerfleddert.de Git - raggedstone/commitdiff
dcm
authormichael <michael>
Wed, 21 Mar 2007 13:51:29 +0000 (13:51 +0000)
committermichael <michael>
Wed, 21 Mar 2007 13:51:29 +0000 (13:51 +0000)
ethernet/ethernet.prj
ethernet/ethernet.ucf
ethernet/phydcm.xaw [new file with mode: 0644]
ethernet/source/phydcm.vhd [new file with mode: 0644]
ethernet/source/top.vhd

index 9086799f53dae6b350815d58f3c3f1abe7aacce3..869bd188c40fd0a58c37f7474b3fe3adad5fb4f0 100644 (file)
@@ -85,3 +85,4 @@ verilog work "source/pci/pci_cbe_en_crit.v"
 verilog work "source/pci/pci_pci_decoder.v"
 verilog work "source/pci/pci_in_reg.v"
 vhdl work "source/top.vhd"
+vhdl work "source/phydcm.vhd"
index b62ae07c01d3b2d79380ca00623c2977e8997b1d..e64c929e97a23f7647c4a57be3ee111e3638f93e 100644 (file)
@@ -77,3 +77,18 @@ NET "MDC_PAD_O"   LOC = "U2" | IOSTANDARD = LVCMOS33;
 NET "PHY_CLOCK"   LOC = "L5" | IOSTANDARD = LVCMOS33;
 
 NET "LED_2"  LOC = "AB5"  | IOSTANDARD = LVTTL | DRIVE = 24 ;
+
+INST DCM_INST CLK_FEEDBACK = 1X;
+INST DCM_INST CLKDV_DIVIDE = 2.0;
+INST DCM_INST CLKFX_DIVIDE = 29;
+INST DCM_INST CLKFX_MULTIPLY = 22;
+INST DCM_INST CLKIN_DIVIDE_BY_2 = FALSE;
+INST DCM_INST CLKIN_PERIOD = 30.303;
+INST DCM_INST CLKOUT_PHASE_SHIFT = NONE;
+INST DCM_INST DESKEW_ADJUST = SYSTEM_SYNCHRONOUS;
+INST DCM_INST DFS_FREQUENCY_MODE = LOW;
+INST DCM_INST DLL_FREQUENCY_MODE = LOW;
+INST DCM_INST DUTY_CYCLE_CORRECTION = TRUE;
+INST DCM_INST FACTORY_JF = 8080;
+INST DCM_INST PHASE_SHIFT = 0;
+INST DCM_INST STARTUP_WAIT = FALSE;
diff --git a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*;2;48 7`=?2.8:7o4$259=>"4i3?;7)=i:c9'05<3m2.?=78;;%64>21<,=n1m6*;8;7e?!2f2<l0(9m5789'0c<23-?:6864$41925=#==0=<6*:5;68 0?=>81/:?46;%44>4=#?<0><6*8a;5a?!762j1/=k4;9:&6f?4<,<k146g<9;29 3g=0:1/:n489:9j75<72-<j65=4$7a93<=<a>;1<7*9a;:0?!0d2>307d8i:18'2d<?;2.=5796;:k44?6=,?k14>5+6884=>=n>m0;6)8n:918 3?=?010e9l50;&5e?>43-<26:74;n06>5<#>h03?6*9c;5:?!7c2;>0(<k55398k7b=83.=m76<;:m1=?6=,?k14>54o3c94?"1i32876a=e;29 3g=0:10c?l50;&5e?>432e9o7>5$7c9<6=<g:81<7*9a;:0?!0d2>30(<j52598k65=83.=m76<;:m42?6=,?k1495+6984=>=h=m0;6)8n:918 3e=?010c;k50;&5e?>432wi?n4?:383>5}#>k0>;6g:6;29 3g=0:1/:n489:9l20<72-<j65=4$7a93<=<uk8<6=4=:183\7f!0e2;>0e8850;&5e?>43-<h6:74;n46>5<#>h03?6*9c;5:?>{e;<0;6?4?:1y'2g<5<2c>:7>5$7c9<6=#>j0<565`6483>!0f2190(;m57898yv5e2909w0:9:2;896e=><1/=n4<d:\7fp74<72;q68;4<0:?13?023-;h6?64}r51>5<6s4>=6:?4$61913=z{;<1<7<t=54960=::>0>:6s|3583>7}:<?08>63<5;75?xu2m3:1=v3;6;7g?!142??0q~=j:182\7f85d2<<0(:=5579~w6>=83;p1>;5649'36<1=2wx?i4?:1y'36<1=2wx>54?:1y'36<1=2wvb?950;3xyk4?290:wp`=9;295~{i:h0;6<urn3`94?7|ug8h6=4>{|l1`?6=9rwe>h4?:0y~j7`=83;pqc=?:182\7fx{zuIJHw>l5165;b5dfuIJIw=sO@Qy~DE
\ No newline at end of file
diff --git a/ethernet/source/phydcm.vhd b/ethernet/source/phydcm.vhd
new file mode 100644 (file)
index 0000000..efec74a
--- /dev/null
@@ -0,0 +1,145 @@
+--------------------------------------------------------------------------------
+-- Copyright (c) 1995-2007 Xilinx, Inc.  All rights reserved.
+--------------------------------------------------------------------------------
+--   ____  ____ 
+--  /   /\/   / 
+-- /___/  \  /    Vendor: Xilinx 
+-- \   \   \/     Version : 9.1.02i
+--  \   \         Application : xaw2vhdl
+--  /   /         Filename : phydcm.vhd
+-- /___/   /\     Timestamp : 03/21/2007 14:47:39
+-- \   \  /  \ 
+--  \___\/\___\ 
+--
+--Command: xaw2vhdl-st phydcm.xaw phydcm
+--Design Name: phydcm
+--Device: xc3s1500-fg456-4
+--
+-- Module phydcm
+-- Generated by Xilinx Architecture Wizard
+-- Written for synthesis tool: XST
+
+library ieee;
+use ieee.std_logic_1164.ALL;
+use ieee.numeric_std.ALL;
+library UNISIM;
+use UNISIM.Vcomponents.ALL;
+
+entity phydcm is
+   port ( CLKIN_IN        : in    std_logic; 
+          RST_IN          : in    std_logic; 
+          CLKFX_OUT       : out   std_logic; 
+          CLKIN_IBUFG_OUT : out   std_logic; 
+          CLK0_OUT        : out   std_logic; 
+          LOCKED_OUT      : out   std_logic);
+end phydcm;
+
+architecture BEHAVIORAL of phydcm is
+   signal CLKFB_IN        : std_logic;
+   signal CLKFX_BUF       : std_logic;
+   signal CLKIN_IBUFG     : std_logic;
+   signal CLK0_BUF        : std_logic;
+   signal GND_BIT         : std_logic;
+   component BUFG
+      port ( I : in    std_logic; 
+             O : out   std_logic);
+   end component;
+   
+   component IBUFG
+      port ( I : in    std_logic; 
+             O : out   std_logic);
+   end component;
+   
+   -- Period Jitter (unit interval) for block DCM_INST = 0.06 UI
+   -- Period Jitter (Peak-to-Peak) for block DCM_INST = 2.27 ns
+   component DCM
+      generic( CLK_FEEDBACK : string :=  "1X";
+               CLKDV_DIVIDE : real :=  2.0;
+               CLKFX_DIVIDE : integer :=  1;
+               CLKFX_MULTIPLY : integer :=  4;
+               CLKIN_DIVIDE_BY_2 : boolean :=  FALSE;
+               CLKIN_PERIOD : real :=  10.0;
+               CLKOUT_PHASE_SHIFT : string :=  "NONE";
+               DESKEW_ADJUST : string :=  "SYSTEM_SYNCHRONOUS";
+               DFS_FREQUENCY_MODE : string :=  "LOW";
+               DLL_FREQUENCY_MODE : string :=  "LOW";
+               DUTY_CYCLE_CORRECTION : boolean :=  TRUE;
+               FACTORY_JF : bit_vector :=  x"C080";
+               PHASE_SHIFT : integer :=  0;
+               STARTUP_WAIT : boolean :=  FALSE;
+               DSS_MODE : string :=  "NONE");
+      port ( CLKIN    : in    std_logic; 
+             CLKFB    : in    std_logic; 
+             RST      : in    std_logic; 
+             PSEN     : in    std_logic; 
+             PSINCDEC : in    std_logic; 
+             PSCLK    : in    std_logic; 
+             DSSEN    : in    std_logic; 
+             CLK0     : out   std_logic; 
+             CLK90    : out   std_logic; 
+             CLK180   : out   std_logic; 
+             CLK270   : out   std_logic; 
+             CLKDV    : out   std_logic; 
+             CLK2X    : out   std_logic; 
+             CLK2X180 : out   std_logic; 
+             CLKFX    : out   std_logic; 
+             CLKFX180 : out   std_logic; 
+             STATUS   : out   std_logic_vector (7 downto 0); 
+             LOCKED   : out   std_logic; 
+             PSDONE   : out   std_logic);
+   end component;
+   
+begin
+   GND_BIT <= '0';
+   CLKIN_IBUFG_OUT <= CLKIN_IBUFG;
+   CLK0_OUT <= CLKFB_IN;
+   CLKFX_BUFG_INST : BUFG
+      port map (I=>CLKFX_BUF,
+                O=>CLKFX_OUT);
+   
+   CLKIN_IBUFG_INST : IBUFG
+      port map (I=>CLKIN_IN,
+                O=>CLKIN_IBUFG);
+   
+   CLK0_BUFG_INST : BUFG
+      port map (I=>CLK0_BUF,
+                O=>CLKFB_IN);
+   
+   DCM_INST : DCM
+   generic map( CLK_FEEDBACK => "1X",
+            CLKDV_DIVIDE => 2.0,
+            CLKFX_DIVIDE => 29,
+            CLKFX_MULTIPLY => 22,
+            CLKIN_DIVIDE_BY_2 => FALSE,
+            CLKIN_PERIOD => 30.303,
+            CLKOUT_PHASE_SHIFT => "NONE",
+            DESKEW_ADJUST => "SYSTEM_SYNCHRONOUS",
+            DFS_FREQUENCY_MODE => "LOW",
+            DLL_FREQUENCY_MODE => "LOW",
+            DUTY_CYCLE_CORRECTION => TRUE,
+            FACTORY_JF => x"8080",
+            PHASE_SHIFT => 0,
+            STARTUP_WAIT => FALSE)
+      port map (CLKFB=>CLKFB_IN,
+                CLKIN=>CLKIN_IBUFG,
+                DSSEN=>GND_BIT,
+                PSCLK=>GND_BIT,
+                PSEN=>GND_BIT,
+                PSINCDEC=>GND_BIT,
+                RST=>RST_IN,
+                CLKDV=>open,
+                CLKFX=>CLKFX_BUF,
+                CLKFX180=>open,
+                CLK0=>CLK0_BUF,
+                CLK2X=>open,
+                CLK2X180=>open,
+                CLK90=>open,
+                CLK180=>open,
+                CLK270=>open,
+                LOCKED=>LOCKED_OUT,
+                PSDONE=>open,
+                STATUS=>open);
+   
+end BEHAVIORAL;
+
+
index 611e9c0bb707ee025541762637d4367eb22e81ab..480de0a9aa128293e2b85699971bef38ec295a42 100644 (file)
@@ -171,6 +171,15 @@ port (
        );
 end component;
 
+component phydcm is
+port ( CLKIN_IN        : in    std_logic;
+       RST_IN          : in    std_logic;
+       CLKFX_OUT       : out   std_logic;
+       CLKIN_IBUFG_OUT : out   std_logic;
+       CLK0_OUT        : out   std_logic;
+       LOCKED_OUT      : out   std_logic);
+end component;
+
 signal pci_rst_o : std_logic;
 signal pci_rst_oe_o : std_logic;
 signal pci_inta_o : std_logic;
@@ -258,7 +267,6 @@ wb_adr_i(11 downto 8) <= (others => '0');
 wb_adr_i(7 downto 2)  <= wbm_adr_o (7 downto 2);
 
 wb_clk_i <= PCI_CLOCK;
-PHY_CLOCK <= PCI_CLOCK;
 
 data(31 downto 0)  <= wbm_adr_o;
 data(40 downto 33) <= wbm_adr_o (7 downto 0);
@@ -394,4 +402,14 @@ port map (
        trig0 => trig0
        );
 
+eth_dcm : phydcm
+port map (
+       CLKIN_IN => PCI_CLOCK,
+       RST_IN => not PCI_RSTn,
+       CLKFX_OUT => PHY_CLOCK
+--     CLKIN_IBUFG_OUT
+--     CLK0_OUT
+--     LOCKED_OUT
+       );
+
 end architecture ethernet_arch;
Impressum, Datenschutz