7
Gigabit Ethernet PCS IP Core
Lattice Semiconductor for LatticeECP2M
Figure 7. Configuration Dialog Box
When you click the Generate button, the IP core and supporting files are generated in the specified Project Path
directory. The directory structure of the generated files is shown in Figure 8.
Figure 8. GbE PCS IP Core Generated Directory Structure
The following files are generated at the root of the “Project Path” directory (gbe_pcs_test in Figure 8):
<username>.lpc – IP parameter file (you may modify this file if necessary)
<username>.ngo – Synthesized and mapped IP core
<username>_bb.v – Black box module wrapper for synthesis
<username>_inst.v – Example of instantiation template to be included in customer’s design
<username>_beh.v – Behavioral simulation model for IP core configuration username
8
Gigabit Ethernet PCS IP Core
Lattice Semiconductor for LatticeECP2M
These are all of the files that you need to implement and verify the GbE PCS IP core in your own top-level design.
The following additional files providing IP core generation status information are also generated in the “Project
Path” directory:
<username>_generate.log – ispLEVER synthesis and map log file
<username>_gen.log – IPexpress IP generation log file
The \<gbe_pcs_eval> and subtending directories provide files supporting GbE PCS core evaluation. The
\<gbe_pcs_eval> directory contains files/folders with content that is constant for all configurations of the GbE
PCS. The \<username> subfolder (\gbepcs_core0 in this example) contains files/folders with content specific
to the username configuration.
The \gbe_pcs_eval directory is created by IPexpress the first time the core is generated and updated each time
the core is regenerated. A \<username> directory is created by IPexpress each time the core is generated and
regenerated each time the core with the same file name is regenerated. A separate \<username> directory is
generated for cores with different names, e.g. \<gbepcs_core1>, \<gbepcs_core2>, etc.
Instantiating the Core
The generated GbE PCS IP core package includes black-box (<username>_bb.v) and instance (<user-
name>_inst.v) templates that can be used to instantiate the core in a top-level design. Two example RTL top-
level source files are provided in \<project_dir>\gbe_pcs_eval\<username>\src\rtl\top\<technol-
ogy>.
The top-level file top.v is a GbE Physical Layer Reference design (described in Appendix B). Additional files asso-
ciated with the reference design are located in the directory \<project_dir>\gbe_pcs_eval\<user-
name>\src\rtl\template\<technology>.
The top-level file top_gbe_pcs_core_only.v supports the ability to implement just the GbE PCS core by itself.
This design is intended only to provide an indication of the device utilization associated with the GbE PCS IP core
and should not be used as an actual implementation example.
Running Functional Simulation
The functional simulation model generated in the “Project Path” root directory (<username>_beh.v) may be
instantiated in the your testbench for evaluation in the context of your application. Lattice does not provide a test-
bench for evaluating this IP core in isolation. However, a function simulation capability is provided in which <user-
name>_beh.v is instantiated in an FPGA top level that implements a complete GbE Physical Layer as discussed
previously and described in an appendix to this document. The top-level file supporting ModelSim
®
simulation is
provided in \<project_dir>\gbe_pc_eval\<username>\sim\modelsim. This FPGA top is instantiated in
an eval testbench provided in \<project_dir>\gbe_psc_eval\testbench.
You may run the eval simulation by doing the following:
1. Open ModelSim.
2. Under the File tab, select Change Directory and choose folder:
<project_dir>\gbe_pcs_eval\<username>\sim\modelsim.
3. Under the Tools tab, select TCL _ Execute Macro and execute the ModelSim do script shown.
The simulation waveform results will be displayed in the ModelSim Wave window.
9
Gigabit Ethernet PCS IP Core
Lattice Semiconductor for LatticeECP2M
Synthesizing and Implementing the Core in a Top-Level Design
The GbE PCS IP core itself is synthesized and is provided in NGO format when the core is generated. You may
synthesize the core in your own top-level design by instantiating the core in your top-level as described above in the
“Instantiating the Core” section and then synthesizing the entire design with either Synplicity
®
or Precision
®
RTL.
As described previously, two example RTL top-level configurations supporting GbE PCS core top-level synthesis
and implementation are provided in \<project_dir>\gbe_pcs_eval\<username>\src\rtl\top\<tech-
nology>.
The top-level file top_gbe_pcs_core_only.v provided in \<project_dir>\gbe_pcs_eval\<user-
name>\src\rtl\top supports the ability to implement just the GBE_PCS core. This design is intended only to
provide an accurate indication of the device utilization associated with the core itself and should not be used as an
actual implementation example.
The top-level file top.v is a GbE Physical Layer Reference design \<project_dir>\gbe_pcs_eval\<user-
name>\src\rtl\top supports the ability to instantiate, simulate, map, place and route the GBE_PCS IP core in
a complete example design. A complete description of this design is given in an appendix to this document. Note
that implementation of the reference evaluation configuration is specifically targeted to a LatticeECP2M
LFE2M35E-6F672C device.
Push-button implementation of both top-level configurations is supported via the ispLEVER project files, <user-
name>_reference_eval.syn and <username>_core_only_eval.syn. These files are located in
<project_dir>\ten_gbemac_test\ten_gbemac_eval\<username>\impl\<configuration>.
To use these project files:
1. Select Open Project under the File tab in ispLEVER.
2. Browse to the \<project_dir\gbe_pcs_eval\<username>\impl directory and select either the
\core_only or \reference directory in the Open Project dialog box.
3. Select and open either <username>_reference_eval.syn or username>_core_only_eval.syn. At this
point, all of the files needed to support top-level synthesis and implementation will be imported to the project.
4. Select the device top-level entry in the left-hand GUI window.
5. Implement the complete design via the standard ispLEVER GUI flow.
Hardware Evaluation
Lattice’s IP hardware evaluation capability makes it possible to create versions of IP cores that operate in hardware
for a limited period of time (approximately four hours) without requiring the purchase on an IP license. The hard-
ware evaluation capability may be enabled/disabled in the Properties menu of the Build Database setup in
ispLEVER Project Navigator. It is enabled by default.
References
ispLEVER Software User Manual
ispLeverCORE™ IP Module Evaluation Tutorial available on the Lattice website at www.latticesemi.com
Technical Support Assistance
Hotline: 1-800-LATTICE (North America)
+1-503-268-8001 (Outside North America)
e-mail: techsupport@latticesemi.com
Internet: www.latticesemi.com

GBE-PCS-PM-U1

Mfr. #:
Manufacturer:
Lattice
Description:
Programmable Logic IC Development Tools Gigabit Ethernet PCS ECP2M
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet