OpenCores
URL https://opencores.org/ocsvn/mips_enhanced/mips_enhanced/trunk

Subversion Repositories mips_enhanced

[/] [mips_enhanced/] [trunk/] [grlib-gpl-1.0.19-b3188/] [designs/] [leon3-altera-ep3sl150/] [README.txt] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dimamali
 
2
This leon3 design is tailored to the Altera NiosII Stratix-III
3
Development board, with 64-bit DDR2 SDRAM and 4 Mbyte PSRAM.
4
 
5
0. Introduction
6
---------------
7
 
8
The leon3 design can be synthesized with quartus or synplify,
9
and can reach 150 - 170 MHz depending on configuration and synthesis
10
options. Use 'make quartus' or 'make quartus-synp' to run the
11
complete flow. To program the FPGA in batch mode, use
12
'make quartus-prog-fpga' or 'make quartus-prog-fpga-ref (reference config).
13
 
14
The output from grmon should look something like this:
15
 
16
grmon -altjtag -jtagdevice 1 -u
17
 
18
 GRMON LEON debug monitor v1.1.29
19
 
20
 Copyright (C) 2004,2005 Gaisler Research - all rights reserved.
21
 For latest updates, go to http://www.gaisler.com/
22
 Comments or bug-reports to support@gaisler.com
23
 
24
 using Altera JTAG cable
25
 Selected cable 1 - USB-Blaster [USB 1-1.2]
26
JTAG chain:
27
@1: EP3SL150 (0x121020DD)
28
 
29
 GRLIB build version: 2949
30
 
31
 initialising ...........
32
 detected frequency: 152 MHz
33
 
34
 Component                            Vendor
35
 LEON3 SPARC V8 Processor             Gaisler Research
36
 AHB Debug JTAG TAP                   Gaisler Research
37
 GR Ethernet MAC                      Gaisler Research
38
 LEON2 Memory Controller              European Space Agency
39
 AHB/APB Bridge                       Gaisler Research
40
 LEON3 Debug Support Unit             Gaisler Research
41
 DDR2 Controller                      Gaisler Research
42
 Generic APB UART                     Gaisler Research
43
 Multi-processor Interrupt Ctrl       Gaisler Research
44
 Modular Timer Unit                   Gaisler Research
45
 General purpose I/O port             Gaisler Research
46
 
47
 Use command 'info sys' to print a detailed report of attached cores
48
 
49
grlib> info sys
50
00.01:003   Gaisler Research  LEON3 SPARC V8 Processor (ver 0x0)
51
             ahb master 0
52
01.01:01c   Gaisler Research  AHB Debug JTAG TAP (ver 0x0)
53
             ahb master 1
54
02.01:01d   Gaisler Research  GR Ethernet MAC (ver 0x0)
55
             ahb master 2, irq 12
56
             apb: 80000b00 - 80000c00
57
             edcl ip 192.168.0.88, buffer 2 kbyte
58
00.04:00f   European Space Agency  LEON2 Memory Controller (ver 0x1)
59
             ahb: 00000000 - 20000000
60
             ahb: 20000000 - 40000000
61
             ahb: a0000000 - b0000000
62
             apb: 80000000 - 80000100
63
             16-bit prom @ 0x00000000
64
01.01:006   Gaisler Research  AHB/APB Bridge (ver 0x0)
65
             ahb: 80000000 - 80100000
66
02.01:004   Gaisler Research  LEON3 Debug Support Unit (ver 0x1)
67
             ahb: 90000000 - a0000000
68
             AHB trace 128 lines, stack pointer 0x7ffffff0
69
             CPU#0 win 8, hwbp 2, itrace 128, V8 mul/div, lddel 1
70
                   icache 2 * 8 kbyte, 32 byte/line lru
71
                   dcache 2 * 4 kbyte, 32 byte/line lru
72
03.01:02e   Gaisler Research  DDR2 Controller (ver 0x0)
73
             ahb: 40000000 - 80000000
74
             ahb: fff00100 - fff00200
75
             64-bit DDR2 : 2 * 512 Mbyte @ 0x40000000
76
                          200 MHz, col 10, ref 7.8 us
77
01.01:00c   Gaisler Research  Generic APB UART (ver 0x1)
78
             irq 2
79
             apb: 80000100 - 80000200
80
             baud rate 38383, DSU mode (FIFO debug)
81
02.01:00d   Gaisler Research  Multi-processor Interrupt Ctrl (ver 0x3)
82
             apb: 80000200 - 80000300
83
03.01:011   Gaisler Research  Modular Timer Unit (ver 0x0)
84
             irq 8
85
             apb: 80000300 - 80000400
86
             8-bit scaler, 2 * 32-bit timers, divisor 152
87
05.01:01a   Gaisler Research  General purpose I/O port (ver 0x0)
88
             apb: 80000500 - 80000600
89
grlib>
90
 
91
 
92
 
93
1. DDR2 interface
94
----------------
95
 
96
The DDR2 interface has been tested up to 200 MHz. The input data delay
97
has to be recalibrated when the interface frequency change. This can be
98
done dynamically or by changing the delay in the .qsf file.
99
 
100
2. SSRAM interface
101
------------------
102
 
103
The PSRAM is not supported.
104
 
105
3. UART
106
-------
107
 
108
The board has no RS232 connector, so grmon should be started
109
with -u to loop-back the UART output to the console.
110
 
111
4. Flash memory
112
---------------
113
 
114
The 16-bit flash memory can be accessed and programmed by grmon,
115
if the SSRAM is working. The output from the 'flash' command is
116
listed below:
117
 
118
grlib> flash
119
 
120
 Intel-style 16-bit flash on D[31:16]
121
 
122
 Manuf.    Intel
123
 Device    0x891C
124
 
125
 Device ID a1d1ffff02824530
126
 User   ID ffffffffffffffff
127
 
128
 
129
 1 x 32 Mbyte = 32 Mbyte total @ 0x00000000
130
 
131
 
132
 CFI info
133
 flash family  : 1
134
 flash size    : 256 Mbit
135
 erase regions : 2
136
 erase blocks  : 259
137
 write buffer  : 64 bytes
138
 region  0     : 4 blocks of 32 Kbytes
139
 region  1     : 255 blocks of 128 Kbytes
140
 
141
 
142
* How to program the flash prom with a FPGA programming file
143
 
144
  1. Create a hex file of the programming file with Quartus.
145
 
146
  2. Convert it to srecord and adjust the load address:
147
 
148
        objcopy --adjust-vma=0x20000 output_file.hexout -O srec fpga.srec
149
 
150
  3. Program the flash memory using grmon:
151
 
152
      flash unlock all
153
      flash erase 0x20000 0x100000
154
      flash load fpga.srec
155
 
156
The programming is slow, and will take at approximately 30 minutes.
157
 
158
5. Ethernet
159
-----------
160
 
161
The Ethernet debug link is enabled with IP=192.168.0.88.
162
To be able to connect to the EDCL, the PHY has to be configured by
163
the following grmon command:
164
 
165
wmdio 18 27 0x808f
166
wmdio 18 0 0xb100
167
 
168
 
169
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.