Download TR0130 Nios II Embedded Tools Reference
Transcript
Linker Script Language
map
dest
dest_dbits
dest_offset
size
src_dbits
src_offset
8.5.1
bus
space
Defining an Architecture
With the keyword architecture you define an architecture and assign a unique name to it. The name is used to refer to it at
other places in the LSL file:
architecture name
{
definitions
}
If you are defining multiple core architectures that show great resemblance, you can define the common features in a parent
core architecture and extend this with a child core architecture that contains specific features. The child inherits all features of
the parent. With the keyword extends you create a child core architecture:
architecture name_child_arch extends name_parent_arch
{
definitions
}
A core architecture can have any number of parameters. These are identifiers which get values assigned on instantiation or
extension of the architecture. You can use them in any expression within the core architecture. Parameters can have default
values, which are used when the core architecture is instantiated with less arguments than there are parameters defined for it.
When you extend a core architecture you can pass arguments to the parent architecture. Arguments are expressions that set
the value of the parameters of the sub−architecture.
architecture name_child_arch (parm1,parm2=1)
extends name_parent_arch (arguments)
{
definitions
}
8.5.2
Defining Internal Buses
With the bus keyword you define a bus (the combination of data and corresponding address bus). The bus name is used to
identify a bus and does not conflict with other identifiers. Bus descriptions in an architecture definition or derivative definition
define internal buses. Some internal buses are used to communicate with the components outside the core or processor. Such
buses on a processor have physical pins reserved for the number of bits specified with the width statements.
• The mau field specifies the MAU size (Minimum Addressable Unit) of the data bus. This field is required.
• The width field specifies the width (number of address lines) of the data bus. The default value is the MAU size.
• The map keyword specifies how this bus maps onto another bus (if so). Mappings are described in section 8.5.4, Mappings.
bus bus_name
{
mau = 8;
width = 8;
map ( map_description );
}
8.5.3
Defining Address Spaces
With the space keyword you define a logical address space. The space name is used to identify the address space and does
not conflict with other identifiers.
8−15
Related documents
Nios II Processor Reference Handbook
GU0111 Using the TSK3000 Embedded Tools
v1.1 ARM Tools Reference
TR0109 TSK3000 Embedded Tools Reference
GU0111 Using the TSK3000 Embedded Tools
PDF version - ARM Information Center
Altera Nios II Specifications
TR0109 TSK3000 Embedded Tools Reference
Lab 4 Instruction Manual
VAASAN AMMATTIKORKEAKOULU
DE2 Development and Education Board User Manual
Instruction Manual D2 3340