Beruflich Dokumente
Kultur Dokumente
Abstract—This paper presents a Cortex-M3-based system-on- some key peripherals will be discussed in detail in section Ⅲ.
chip (SoC) architecture designed for power-grid-dedicated In section Ⅳ , clock domain and area occupancy of the
wireless communication system based on IEEE 802.11ah protocol. proposed architecture will be provided. Finally the conclusion
The SoC is integrated with a 32-bit embedded microprocessor
of the full paper will be made.
core using Thumb-2 instruction sets and multiple master/slave
devices being compliable with advanced microcontroller bus
architecture (AMBA) v2.0 protocol. Along with the various II. SYSTEM ARCHITECTURE
communication interfaces to make the chip more applicable, the
whole system can accomplish data communication and processing A. Overview
in power grid applications with high performance and low cost. In the design method of on-chip system, IP (Intellectual
Property) core and the on-chip bus are the most important parts.
Keywords—system-on-chip, cortex-m3, wireless communication,
IP core is a RTL level module that realizes special circuit
power grid
function, and it can be transplanted and reused in different SoC
because of its independence of the process. The large number
I. INTRODUCTION of integration and cooperative interconnection of IP cores with
With the rapid development of VLSI and the continuous different functions determines the functions that can be realized
emergence of new devices, embedded system has been widely by a single SoC. On-chip bus structure is the mainstream
used and the design of communication and control circuits has solution to the interconnection of various IP cores. Some
been greatly changed. The design scheme using MPU and standard bus protocols, like CoreConnect bus by IBM
many peripheral chips, such as memory, I/O extension, latch Company and AMBA bus by ARM Company, etc., have been
and so on, has been replaced by system-level chip SoC. SoC, introduced to make the bus more compatible with the IP cores
taking account of the overall function and performance of the provided by the third party.
system, has gradually become the mainstream design trend in
the field of wireless communication and control. It is a highly B. SoC Architecture
integrated system with microprocessor and some digital/analog The system architecture and the bus matrix of the proposed
peripherals being placed on one single chip. The chip is SoC are illustrated in Figure 1 & Figure 2 separately.
programmable, configurable, flexible in design, high in AMBA2.0 bus protocol is adopted because it can standardize
integration degree and reliability but low in power consumption several kinds of buses of different speed to adapt to more
and area occupation, therefore it is very suitable as a control complex applications and it supports a large number of third
and interface chip for wireless communication systems. party IP cores. The SoC is integrated with a 32-bit
The proposed SoC architecture in this paper integrated the microprocessor core using Thumb-2 instruction sets, a SPI-
cortex-m3 microcontroller, memories, Ethernet controller flash, a SDRAM, four SRAMs and two FIFOs (TxFIFO &
GMAC, physical interface transceiver PHY, analog front-end RxFIFO) for different storage use, a DMA for data migration
module, security module, various interface circuits and wireless between peripherals and memories, a GMAC (Gigabit Ethernet
transceiver into a very small single chip, and has great potential MAC controller) and PHY to provide Ethernet access to SoC,
in short-range wireless communication systems of power-grid several communication interfaces like GPIO, UART, SPI and
applications which require high security, low power I2C to facilitate the subsequent application expansion, a secure
consumption, low cost, multi-node and flexible networking. encryption IP to ensure the security of data transmission and
The SoC is applicable for power grid communication systems processing and some other function modules like watchdog and
based on IEEE 802.11ah protocol such as electrical timers.
information acquisition terminal, substation/transmission-line
status monitoring system, video surveillance, mobile patrol and III. MAIN FUNCTION MODULE DESCRIPTION
so on[1]. The main processor (CPU) is responsible for genera data
The paper is organized as follows. System architecture and processing, peripheral configuration, interrupt response, task
bus matrix will be presented in section Ⅱ. Microprocessor and scheduling and so on. Other components, occupying the limited
CM3DI
M0
Code Mux
S0
Controller TIMER0
TxFIFO
System bus which corresponds to 0x20000000~0x40000000
AHB master port
Cortex-M3
M1
SRAM0 TIMER1 AHB slave port
RxFIFO
region in the address space. In this way, the instruction and
CM3S
S1
AHB slave module
M2
SRAM1 Dualtimer
SPI AHB master module
read-only data from FLASH can be executed and fetched in
M3
AHB MUX
SRAM2 UART0
parallel by Icode and Dcode bus, while the data in SRAM can
bus bridge
I2C
INTEXP0
GMAC(s) DMA(m)
S2 APB slave module
M4
SRAM3
be read and written by System bus. The three buses have their
UART1
PHY DMA(s)
AFE
own division of labor, so that the performance of SoC is greatly
INTEXP1
GMAC(m)
S3
APB0
M5
GPIO0~3 SECURITY AHB2APB
SYSCTRL
WatchDog
improved. Table Ⅰshows the mapping of the memory system.
SDRAM
EXP0
EXP1
M6
M7
Reserved
Controller
CRC
Output_stage APB0
Gigabit Media Access Control (GMAC) module, modulation
Fig. 2. Bus matrix of the proposed SoC and demodulation part, CPU and together with interface circuit
constitute the baseband processing module.
A. Microprocessor Core Besides the control and management of the digital signal
ARM Cortex-M3 is a 32-bit processor core which adopts processing module of the whole wireless communication
the Harvard structure and the three-stage pipeline system. It has system, including timing, interrupt response, energy-saving
been favored by a lot of manufactures due to its high mode control and interface control, CPU also runs the upper
performance, low power consumption, low cost and layer application software of the communication terminal on
friendliness for development. There are three bus interfaces demand. Modem mainly completes the modulation and
outside the core, Icode-bus, Dcode-bus and System-bus. The demodulation based on the IEEE 802.11ah communication
Icode and Dcode bus interfaces make the parallel execution of protocol. GMAC is used to define the transmission mode of
instruction and data fetch from the code region of the address data frames in the medium. In a shared bandwidth link, access
space a reality while the System-bus interface makes the to the connection medium is on a first-come-first-served basis.
instruction and data fetch from the SRAM region of the address Physical addressing is defined at the MAC layer and the logical
space use the same interface, which cannot be executed in topology is also defined here. In addition, line control, error
parallel. notification, frame transmission order and optional flow control
are also implemented in this sublayer.
B. Memory System Software
The memory system of the proposed SoC is composed of Protocol Layer
one 16MB-FLASH, four 64KB-SRAMs and one 16MB-
SDRAM. The SRAM is directly connected to the bus interface
through a simple controller, and it is implemented on-chip,
while the FLASH and SDRAM are off-chip and they are
Media Access Control Layer(GMAC)
connected to the bus interface through corresponding on-chip
controllers. The FLASH can provide non-volatile storage of
operating system, most of the user application programs and
some constant application configuration data, While the on-
chip SRAM provides space for the read-write data which is Phisical Layer (PHY)
17
The baseband system architecture is shown in Figure 4. The reserved state, and its configuration registers are all writable,
digital baseband data is interacted by RF front-end and PHY which can provide a channel for access between any peripheral
layer. After modulation or demodulation, the data are and memory. The configuration and occupancy of the channels
exchanged to GMAC to be parsed or packaged according to is shown in Figure 6.
IEEE 802.11ah standard. In short, GMAC implements data
frame protocol analysis and control while PHY implements
data processing including modulation /demodulation, channel DMA
equalization, etc.. HW request0 High priority
Channel 0
SW trigger 0
HW request1
AMBA BUS Channel 1
Internal
BUS_IF SW trigger 1 DMA request
HW request2
Channel 2
SW trigger 2
HW request3
Channel 3
Channel 0 Channel 2
FLASH SRAM SPI
SDRAM I2C
Channel 3 (Reserved)
Fig. 4. PHY and GMAC architecture in the baseband system
TxFIFO
UART0
D. Direct Memory Access RxFIFO
18
through I/O reads and interrupts. The block operates in slave,
and master, or both modes.
The watchdog timer is actually a counter which is usually
initialized with a large number, and it starts counting
backwards when the program starts running. If the program
works properly, CPU should issue instructions for the
watchdog to reset and start counting backwards after some
time. Otherwise, if the watchdog counts to 0, it indicates that
the program is not working properly, and the whole system
should be forced to reset at this time.
System controller includes logics with regards to AHB
address remapping, module clock gating control, reset control
and reset information record.
IV. RESOURCE UTILIZATION Fig. 7. Area proportional distribution of the proposed SoC
19