wiki:Component/lm32

Version 2 (modified by tarik.graba@…, 15 years ago) (diff)

--

SocLib Components General Index

Processor Functional Description

This hardware component is a lm32 (lattice mico32) processor core.

This ISS uses the ISS2 API and can be wrapped in a CABA or TLM-T Wrapper.

It implements all instructions defined in the lm32 architecture specification.

Component definition & implementation

Interrupts

LM32 architecture supports up to 32 external interrupt lines. This ISS implements all these interrupt lines by default.

Ports

None, it is to the wrapper to provide them.

Notes

MMU suppurt

The lm32 provided by lattice does not have an mmu.

Compiling programs for lm32 with SoCLib

Before compiling a program for the lm32 with the SoCLib framework you will need to define some system variables (usually on the ~/.soclib/soft_compilers.conf) needed to find the lm32 compiler. Below you have an example:

sparc_CC_PREFIX = lm32-elf-
sparc_CFLAGS = -O2 -g -mmultiply-enabled -mdivide-enabled -msign-extend-enabled -mbarrel-shift-enabled
sparc_LDFLAGS = -nostdlib