Sample Code - Lattice Semiconductor MachXO2 Series Usage Manual

Hide thumbs Also See for MachXO2 Series:
Table of Contents

Advertisement

Table 4. SED Run Time
XO2-
256
1
Density
94K
33.25 MHz
0.35
2.08 MHz
5.64
1. Density refers to the number of configuration bits in the device.

Sample Code

The following simple example code shows how to instantiate the SED primitive. In the example the SED is always
enabled and will be run when the "sed_start" signal is driven high. The outputs of the SED hardware are available
to route to the PLD output pins or for use in another module. Note that the SADFA primitive is part of ispLEVER 8.1
SP1 or later and Diamond 1.1 or later.
SED VHDL Examples
VHDL SEDFA
COMPONENT SEDFA
GENERIC(
SED_CLK_FREQ
CHECKALWAYS
DEV_DENSITY
--"256L","640L","1200L","2000L","4000L","7000L", "640U", "1200U", "2000U"
PORT(
SEDENABLE
SEDSTART
SEDFRCERR
SEDSTDBY
SEDERR
SEDDONE
SEDINPROG
SEDCLKOUT
END COMPONENT;
attribute SED_CLK_FREQ : string ;
attribute SED_CLK_FREQ of SEDinst0 : label is "13.30";
attribute CHECKALWAYS : string ;
attribute CHECKALWAYS of SEDinst0 : label is "DISABLED" ;
attribute DEV_DENSITY : string ;
attribute DEV_DENSITY of SEDinst0 : label is "1200L" ;
SEDinst0:
SEDFA
-- synthesis translate_off
GENERIC MAP ( SED_CLK_FREQ => "13.30";
CHECKALWAYS => "DISABLED" ;
DEV_DENSITY => "1200L" )
-- synthesis translate_on
PORT MAP
(SEDENABLE => '1',
SEDSTART => sed_start,
SEDFRCERR => '0',
XO2-
XO2-
XO2-
640
640U
1200
191K
360K
360K
0.72
1.35
1.35
11.48
21.63
21.63
: string
:= "3.5";
: string
:= "DISABLED";
: string
:= "1200L");
:
in
:
in
:
in
:
in
:
out
:
out
:
out
:
out
XO2-
XO2-
XO2-
1200U
2000
2000U
535K
535K
972K
2.01
2.01
32.15
32.15
58.41
STD_LOGIC;
STD_LOGIC;
STD_LOGIC;
STD_LOGIC;
STD_LOGIC;
STD_LOGIC;
STD_LOGIC;
STD_LOGIC);
8
MachXO2 SED Usage Guide
XO2-
XO2-
4000
7000
972K
1534K
3.65
3.65
5.77
58.41
92.19
Units
ms
ms

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MachXO2 Series and is the answer not in the manual?

Table of Contents