Changes between Version 17 and Version 18 of TBR/BSP/Leon3
- Timestamp:
- 01/13/15 10:28:00 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TBR/BSP/Leon3
v17 v18 1 = L eon3=1 = LEON3/4 = 2 2 3 3 4 {{Infobox BSP 4 {{{ 5 #!comment 6 Infobox BSP 5 7 |BSP_name = LEON3 6 8 |Manufacturer = Aeroflex Inc. … … 9 11 |Board_URL = http://www.hitechglobal.com/ipcores/leon3.htm 10 12 |Architecture = SPARC V8 11 |CPU_model = LEON3 13 |CPU_model = LEON3/4 12 14 |Monitor = 13 15 |Simulator = TSIM, Modelsim, Ncsim and GHDL … … 18 20 |Video = 19 21 |Other = Also features a built-in disassembler for debug purposes. 20 }} 22 }}} 21 23 22 This BSP is for the [http:// www.gaisler.com/products/leon3/leon3.html LEON3 SPARC V8 processor] developed by [http://www.gaisler.com Aeroflex Gaisler]. LEON3 is available as a synthesizable VHDL model, allowing custom implementations on FPGA and/or ASIC. The LEON3 BSP probes AMBA Play&Play information for basic peripherals such as interrupt controller, timer, and UART. Probing the Plug&Play makes it possible for the LEON3 BSP to supports many LEON3 based controllers and boards. The LEON3 BSP has also support for the LEON4. The basic peripherals supported:24 This BSP is for the [http://gaisler.com/index.php/products/processors LEON3/4 SPARC V8 processor] developed by [http://www.gaisler.com Cobham Gaisler]. LEON3/4 is available as a synthesizable VHDL model, allowing custom implementations on FPGA and/or ASIC. The LEON3/4 BSP probes AMBA Plug&Play information for basic peripherals such as interrupt controller, timer, and UART. Probing the Plug&Play makes it possible for the BSP to supports many LEON3/4 based controllers and boards. The basic peripherals supported: 23 25 24 26 * IRQMP, IRQAMP … … 27 29 28 30 The BSP supports three network interfaces: the 29 [http:// www.gaisler.com/cms/index.php?option=com_content&task=view&id=199&Itemid=145GRETH 10/100/1000], the31 [http://gaisler.com/index.php/products/ipcores/ethernet/grethgbit GRETH 10/100/1000], the 30 32 [http://www.google.se/url?sa=t&ct=res&cd=1&url=http%3A//www.opencores.org/projects/ethmac/&ei=DPonQ6y_NceciALjsMC_Bw Opencores Ethernet MAC] and the [http://www.google.se/url?sa=t&ct=res&cd=1&url=http%3A//www.smsc.com/main/catalog/lan91c111.html&ei=2PknQ5KaE4miiAKA7-HKBw LAN91C111] i/f. 31 33 … … 35 37 * CAN, OC_CAN (Opencores CAN GRLIB wrapper) 36 38 * 1553, 1553BRM 37 * SpaceWire, GRSPW39 * !SpaceWire, GRSPW 38 40 * PCI drivers to RASTA, Companion Chip 41 39 42 = System Console = 40 43 41 The LEON3 BSP has support for the RTEMS console interface and the debug UART interface (printk). The first UART found is by default selected as debug and system console. However, it is possible to override the default settings by declaring a integer named 'debug_uart_index' or/and the 'syscon_uart_index'. Setting the variable to N will select the Nth UART for either debug UART or system console. Note that on a AMP system (RTEMS MP) the default is to user APBUART[0] for CPU0, APBUART[1]for CPU1 and so on.44 The LEON3/4 BSP has support for the RTEMS console interface and the debug UART interface (`printk`). The first UART found is by default selected as debug and system console. However, it is possible to override the default settings by declaring an integer named `debug_uart_index` and/or `syscon_uart_index`. Setting the variable to N will select the Nth UART for either debug UART or system console. Note that on a AMP system (RTEMS MP) the default is to use `APBUART[0]` for CPU0, `APBUART[1]` for CPU1 and so on. 42 45 43 /dev/console_a is by default renamed /dev/console and assigned minor=0, but the user can select /dev/console_['a'+N] to be renamed to /dev/console by setting syscon_uart_index=N. See table below.46 `/dev/console_a` is by default renamed `/dev/console` and assigned minor=0, but the user can select `/dev/console_['a'+N]` to be renamed to `/dev/console` by setting `syscon_uart_index=N`. See table below. 44 47 45 {| class="wikitable" border="1" cellspacing="1" cellpadding="5" 46 |- 47 ! MINOR 48 ! DEVICE FILE SYSTEM NAME 49 ! UART 50 |- 51 | 0 52 | /dev/console 53 | Default APBUART[0], user selectable through 'syscon_uart_index' 54 |- 55 | 1 56 | /dev/console_a 57 | APBUART[0] (missing by default) 58 |- 59 | 2 60 | /dev/console_b 61 | APBUART[1] 62 |- 63 | .. 64 | 65 | 66 |- 67 |} 48 ||= MINOR =||= DEVICE FILE SYSTEM NAME =||= UART =|| 49 ||0 ||/dev/console ||Default `APBUART[0]`, user selectable through `syscon_uart_index` || 50 ||1 ||/dev/console_a ||`APBUART[0]` (missing by default)|| 51 ||2 ||/dev/console_b ||`APBUART[1]` || 52 ||... || || || 68 53 69 On a MP system the console renamed to /dev/console is selected by CPU index (LEON3_Cpu_Index). /dev/console_['a' + LEON3_Cpu_Index]is54 On a MP system the console renamed to `/dev/console` is selected by CPU index (`LEON3_Cpu_Index`). `/dev/console_['a' + LEON3_Cpu_Index]` is 70 55 renamed unless overridden. Resource sharing is performed by the user, one should not open/access a console that another OS instance uses. 71 56 72 The console driver can operate in polling mode or interrupt mode, which mode is used is selected at compile time using the CONSOLE_USE_INTERRUPT configuration option. All UARTs are operate in the same mode. 57 The console driver can operate in polling mode or interrupt mode, which mode is used is selected at compile time using the `CONSOLE_USE_INTERRUPT` configuration option. All UARTs are operate in the same mode. 58 73 59 = Console forwarding to GRMON = 74 60