Line 62... |
Line 62... |
===============
|
===============
|
|
|
Unpack the software and create a _separate_ directory in which to build
|
Unpack the software and create a _separate_ directory in which to build
|
it:
|
it:
|
|
|
tar jxf or1ksim-2011-01-05.tar.bz2
|
tar jxf or1ksim-2011-01-27.tar.bz2
|
mkdir builddir_or1ksim
|
mkdir builddir_or1ksim
|
cd builddir_or1ksim
|
cd builddir_or1ksim
|
|
|
|
|
File: or1ksim.info, Node: Configuring the Build, Next: Build and Install, Prev: Preparation, Up: Installation
|
File: or1ksim.info, Node: Configuring the Build, Next: Build and Install, Prev: Preparation, Up: Installation
|
Line 79... |
Line 79... |
|
|
The most significant argument is `--target', which should specify the
|
The most significant argument is `--target', which should specify the
|
OpenRISC 1000 32-bit architecture. If this argument is omitted, it will
|
OpenRISC 1000 32-bit architecture. If this argument is omitted, it will
|
default to OpenRISC 1000 32-bit with a warning
|
default to OpenRISC 1000 32-bit with a warning
|
|
|
../or1ksim-2011-01-05/configure --target=or32-elf ...
|
../or1ksim-2011-01-27/configure --target=or32-elf ...
|
|
|
There are several other options available, many of which are standard
|
There are several other options available, many of which are standard
|
to GNU `configure' scripts. Use `configure --help' to see all the
|
to GNU `configure' scripts. Use `configure --help' to see all the
|
options. The most useful is `--prefix' to specify a directory for
|
options. The most useful is `--prefix' to specify a directory for
|
installation of the tools.
|
installation of the tools.
|
Line 1056... |
Line 1056... |
Instruction tracing is turned on.
|
Instruction tracing is turned on.
|
|
|
`l.nop 9'
|
`l.nop 9'
|
Instruction tracing is turned off.
|
Instruction tracing is turned off.
|
|
|
|
`l.nop 10'
|
|
A 32-bit random number is returned in `r11'.
|
|
|
|
The random numbers are generated using `random', which in turn is
|
|
seeded through `srandom' using the host `/dev/urandom' if
|
|
available, or else the process ID of the Or1ksim instance.
|
|
|
|
This opcode is particularly useful for situations where a target
|
|
program running on Or1ksim needs to obtain genuine system entropy
|
|
to generate random numbers.
|
|
|
|
`l.nop 11'
|
|
Return a non-zero value in `r11'.
|
|
|
|
This opcode can be used to detect if a target is running under
|
|
Or1ksim. Set `r11' to zero, issue this opcode, and look to see if
|
|
`r11' is non-zero.
|
|
|
|
|
|
|
File: or1ksim.info, Node: Configuration, Next: Interactive Command Line, Prev: Usage, Up: Top
|
File: or1ksim.info, Node: Configuration, Next: Interactive Command Line, Prev: Usage, Up: Top
|
|
|
3 Configuration
|
3 Configuration
|
Line 4373... |
Line 4391... |
* jitter (UART configuration): UART Configuration. (line 78)
|
* jitter (UART configuration): UART Configuration. (line 78)
|
* keyboard configuration: Keyboard Configuration.
|
* keyboard configuration: Keyboard Configuration.
|
(line 6)
|
(line 6)
|
* l.nop 0: l.nop Support. (line 12)
|
* l.nop 0: l.nop Support. (line 12)
|
* l.nop 1 (end simulation): l.nop Support. (line 15)
|
* l.nop 1 (end simulation): l.nop Support. (line 15)
|
|
* l.nop 10 (return a random number): l.nop Support. (line 51)
|
|
* l.nop 11 (return a non-zero value): l.nop Support. (line 62)
|
* l.nop 2 (report): l.nop Support. (line 19)
|
* l.nop 2 (report): l.nop Support. (line 19)
|
* l.nop 3 (printf, now obsolete): l.nop Support. (line 22)
|
* l.nop 3 (printf, now obsolete): l.nop Support. (line 22)
|
* l.nop 4 (putc): l.nop Support. (line 29)
|
* l.nop 4 (putc): l.nop Support. (line 29)
|
* l.nop 5 (reset statistics counters): l.nop Support. (line 34)
|
* l.nop 5 (reset statistics counters): l.nop Support. (line 34)
|
* l.nop 6 (get clock ticks): l.nop Support. (line 37)
|
* l.nop 6 (get clock ticks): l.nop Support. (line 37)
|
Line 4843... |
Line 4863... |
Node: Opening the Firewall33497
|
Node: Opening the Firewall33497
|
Node: Disabling Ethernet Filtering33988
|
Node: Disabling Ethernet Filtering33988
|
Node: Networking from OpenRISC Linux and BusyBox34613
|
Node: Networking from OpenRISC Linux and BusyBox34613
|
Node: Tearing Down a Bridge36275
|
Node: Tearing Down a Bridge36275
|
Node: l.nop Support37018
|
Node: l.nop Support37018
|
Node: Configuration38528
|
Node: Configuration39180
|
Node: Configuration File Format39140
|
Node: Configuration File Format39792
|
Node: Configuration File Preprocessing39525
|
Node: Configuration File Preprocessing40177
|
Node: Configuration File Syntax39822
|
Node: Configuration File Syntax40474
|
Node: Simulator Configuration42607
|
Node: Simulator Configuration43259
|
Node: Simulator Behavior42898
|
Node: Simulator Behavior43550
|
Node: Verification API Configuration47479
|
Node: Verification API Configuration48131
|
Node: CUC Configuration49419
|
Node: CUC Configuration50071
|
Node: Core OpenRISC Configuration51411
|
Node: Core OpenRISC Configuration52063
|
Node: CPU Configuration51913
|
Node: CPU Configuration52565
|
Node: Memory Configuration56032
|
Node: Memory Configuration56684
|
Node: Memory Management Configuration62754
|
Node: Memory Management Configuration63406
|
Node: Cache Configuration65131
|
Node: Cache Configuration65783
|
Node: Interrupt Configuration67517
|
Node: Interrupt Configuration68169
|
Node: Power Management Configuration69350
|
Node: Power Management Configuration70002
|
Node: Branch Prediction Configuration70627
|
Node: Branch Prediction Configuration71279
|
Node: Debug Interface Configuration71987
|
Node: Debug Interface Configuration72639
|
Node: Peripheral Configuration74330
|
Node: Peripheral Configuration74982
|
Node: Memory Controller Configuration74956
|
Node: Memory Controller Configuration75608
|
Node: UART Configuration78736
|
Node: UART Configuration79388
|
Node: DMA Configuration82255
|
Node: DMA Configuration82907
|
Node: Ethernet Configuration84122
|
Node: Ethernet Configuration84774
|
Node: GPIO Configuration89401
|
Node: GPIO Configuration90053
|
Node: Display Interface Configuration91034
|
Node: Display Interface Configuration91686
|
Node: Frame Buffer Configuration93343
|
Node: Frame Buffer Configuration93995
|
Node: Keyboard Configuration95207
|
Node: Keyboard Configuration95859
|
Node: Disc Interface Configuration97445
|
Node: Disc Interface Configuration98097
|
Node: Generic Peripheral Configuration102549
|
Node: Generic Peripheral Configuration103201
|
Node: Interactive Command Line104844
|
Node: Interactive Command Line105496
|
Node: Verification API111818
|
Node: Verification API112470
|
Node: Code Internals116248
|
Node: Code Internals116900
|
Node: Coding Conventions116831
|
Node: Coding Conventions117483
|
Node: Global Data Structures121258
|
Node: Global Data Structures121910
|
Node: Concepts123915
|
Node: Concepts124567
|
Ref: Output Redirection124060
|
Ref: Output Redirection124712
|
Ref: Interrupts Internal124598
|
Ref: Interrupts Internal125250
|
Node: Internal Debugging125751
|
Node: Internal Debugging126403
|
Node: Regression Testing126275
|
Node: Regression Testing126927
|
Node: GNU Free Documentation License130064
|
Node: GNU Free Documentation License130716
|
Node: Index152471
|
Node: Index153123
|
|
|
End Tag Table
|
End Tag Table
|