1 |
2 |
dimamali |
This leon3 design is tailored to the Xilinx XtremeDSP Starter Platform, Spartan-3A DSP 1800A Edition
|
2 |
|
|
|
3 |
|
|
http://www.xilinx.com/s3adspstarter
|
4 |
|
|
|
5 |
|
|
This design can not be simulated without making some small
|
6 |
|
|
modifications to the design. The reason for this is that the
|
7 |
|
|
simulation model of the DDR2 memory does not support preloading of
|
8 |
|
|
data and can thus not be used as main memory (at least not without
|
9 |
|
|
excessive simulation time for loading instructions/data into memory).
|
10 |
|
|
|
11 |
|
|
The DDR2 memory is mapped to address 0x60000000 during simulation,
|
12 |
|
|
instead of 0x40000000 that is used during synthesis. The reason for
|
13 |
|
|
this is that the DDR2 memory simulation model can not be initialized
|
14 |
|
|
with data. So to avoid excessive simulation times, where data has to
|
15 |
|
|
be written to the memory, an SDRAM is mapped to address 0x40000000
|
16 |
|
|
during simulation.
|
17 |
|
|
|
18 |
|
|
Synplify version 9.4 is prefered for synthesis, since earlier versions
|
19 |
|
|
have shown tendencies to create incorrect results.
|
20 |
|
|
|
21 |
|
|
Design specifics:
|
22 |
|
|
|
23 |
|
|
* System reset is mapped to SW5 (reset)
|
24 |
|
|
|
25 |
|
|
* DSU break is mapped to SW6
|
26 |
|
|
|
27 |
|
|
* LED 13/14 indicates DSU UART TX and RX activity.
|
28 |
|
|
|
29 |
|
|
* LED 12 indicates processor in debug mode
|
30 |
|
|
|
31 |
|
|
* LED 11 indicates if the DLL in the DDR2 memory controller is locked
|
32 |
|
|
to the system clock
|
33 |
|
|
|
34 |
|
|
* LED 7 indicates processor in error mode
|
35 |
|
|
|
36 |
|
|
* The GRETH core is enabled and runs without problems at 100 Mbit.
|
37 |
|
|
Ethernet debug link is enabled, default IP is 192.168.0.51.
|
38 |
|
|
|
39 |
|
|
* 8-bit flash prom can be read at address 0. It can be programmed
|
40 |
|
|
with GRMON version 1.1.16 or later.
|
41 |
|
|
|
42 |
|
|
* DDR2 is mapped at address 0x40000000 (128 Mbyte) and is clocked
|
43 |
|
|
at 125 MHz. The processor and AMBA system runs on a different
|
44 |
|
|
clock, and can typically reach 40 MHz. The processor clock
|
45 |
|
|
is generated from the 125 MHz clock oscillator, scaled with the
|
46 |
|
|
DCM factors (7/20) in xconfig.
|
47 |
|
|
|
48 |
|
|
* The application UART1 is connected to the male RS232 connector.
|
49 |
|
|
|
50 |
|
|
* The JTAG DSU interface is enabled.
|
51 |
|
|
|
52 |
|
|
* Output from GRMON info sys is:
|
53 |
|
|
|
54 |
|
|
grmon -eth -u
|
55 |
|
|
|
56 |
|
|
GRMON LEON debug monitor v1.1.31
|
57 |
|
|
|
58 |
|
|
Copyright (C) 2004-2008 Gaisler Research - all rights reserved.
|
59 |
|
|
For latest updates, go to http://www.gaisler.com/
|
60 |
|
|
Comments or bug-reports to support@gaisler.com
|
61 |
|
|
|
62 |
|
|
Xilinx cable: Cable type/rev : 0x3
|
63 |
|
|
JTAG chain: xc3sd1800a
|
64 |
|
|
|
65 |
|
|
GRLIB build version: 3107
|
66 |
|
|
|
67 |
|
|
initialising ............
|
68 |
|
|
detected frequency: 45 MHz
|
69 |
|
|
|
70 |
|
|
Component Vendor
|
71 |
|
|
LEON3 SPARC V8 Processor Gaisler Research
|
72 |
|
|
AHB Debug JTAG TAP Gaisler Research
|
73 |
|
|
SVGA frame buffer Gaisler Research
|
74 |
|
|
GR Ethernet MAC Gaisler Research
|
75 |
|
|
AHB/APB Bridge Gaisler Research
|
76 |
|
|
LEON3 Debug Support Unit Gaisler Research
|
77 |
|
|
DDR2 Controller Gaisler Research
|
78 |
|
|
LEON2 Memory Controller European Space Agency
|
79 |
|
|
Generic APB UART Gaisler Research
|
80 |
|
|
Multi-processor Interrupt Ctrl Gaisler Research
|
81 |
|
|
Modular Timer Unit Gaisler Research
|
82 |
|
|
General purpose I/O port Gaisler Research
|
83 |
|
|
|
84 |
|
|
Use command 'info sys' to print a detailed report of attached cores
|
85 |
|
|
|
86 |
|
|
grlib> info sys
|
87 |
|
|
00.01:003 Gaisler Research LEON3 SPARC V8 Processor (ver 0x0)
|
88 |
|
|
ahb master 0
|
89 |
|
|
01.01:01c Gaisler Research AHB Debug JTAG TAP (ver 0x0)
|
90 |
|
|
ahb master 1
|
91 |
|
|
02.01:063 Gaisler Research SVGA frame buffer (ver 0x0)
|
92 |
|
|
ahb master 2
|
93 |
|
|
apb: 80000600 - 80000700
|
94 |
|
|
clk0: 25.00 MHz
|
95 |
|
|
03.01:01d Gaisler Research GR Ethernet MAC (ver 0x0)
|
96 |
|
|
ahb master 3, irq 12
|
97 |
|
|
apb: 80000f00 - 80001000
|
98 |
|
|
edcl ip 192.168.0.51, buffer 2 kbyte
|
99 |
|
|
01.01:006 Gaisler Research AHB/APB Bridge (ver 0x0)
|
100 |
|
|
ahb: 80000000 - 80100000
|
101 |
|
|
02.01:004 Gaisler Research LEON3 Debug Support Unit (ver 0x1)
|
102 |
|
|
ahb: 90000000 - a0000000
|
103 |
|
|
AHB trace 256 lines, stack pointer 0x47fffff0
|
104 |
|
|
CPU#0 win 8, itrace 256, V8 mul/div, srmmu, lddel 1
|
105 |
|
|
icache 2 * 4 kbyte, 32 byte/line rnd
|
106 |
|
|
dcache 2 * 4 kbyte, 16 byte/line rnd
|
107 |
|
|
04.01:02e Gaisler Research DDR2 Controller (ver 0x0)
|
108 |
|
|
ahb: 40000000 - 48000000
|
109 |
|
|
ahb: fff00100 - fff00200
|
110 |
|
|
32-bit DDR2 : 1 * 128 Mbyte @ 0x40000000
|
111 |
|
|
125 MHz, col 10, ref 7.8 us
|
112 |
|
|
05.04:00f European Space Agency LEON2 Memory Controller (ver 0x1)
|
113 |
|
|
ahb: 00000000 - 20000000
|
114 |
|
|
ahb: 20000000 - 40000000
|
115 |
|
|
apb: 80000000 - 80000100
|
116 |
|
|
8-bit prom @ 0x00000000
|
117 |
|
|
01.01:00c Gaisler Research Generic APB UART (ver 0x1)
|
118 |
|
|
irq 2
|
119 |
|
|
apb: 80000100 - 80000200
|
120 |
|
|
baud rate 38527
|
121 |
|
|
02.01:00d Gaisler Research Multi-processor Interrupt Ctrl (ver 0x3)
|
122 |
|
|
apb: 80000200 - 80000300
|
123 |
|
|
03.01:011 Gaisler Research Modular Timer Unit (ver 0x0)
|
124 |
|
|
irq 8
|
125 |
|
|
apb: 80000300 - 80000400
|
126 |
|
|
8-bit scaler, 2 * 32-bit timers, divisor 45
|
127 |
|
|
0b.01:01a Gaisler Research General purpose I/O port (ver 0x0)
|
128 |
|
|
apb: 80000b00 - 80000c00
|
129 |
|
|
grlib>
|