ACM Home Page
Please provide us with feedback. Feedback
Minimal placement of bank selection instructions for partitioned memory architectures
Full text PdfPdf (653 KB)
Source
ACM Transactions on Embedded Computing Systems (TECS) archive
Volume 7 ,  Issue 2  (February 2008) table of contents
Article No. 12  
Year of Publication: 2008
ISSN:1539-9087
Authors
Bernhard Scholz  The University of Sydney, Sydney, Australia
Bernd Burgstaller  Yonsei University, Seoul, Korea
Jingling Xue  University of New South Wales, Sydney, Australia
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 9,   Downloads (12 Months): 94,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1331331.1331336
What is a DOI?

ABSTRACT

We have devised an algorithm for minimal placement of bank selections in partitioned memory architectures. This algorithm is parameterizable for a chosen metric, such as speed, space, or energy. Bank switching is a technique that increases the code and data memory in microcontrollers without extending the address buses. Given a program in which variables have been assigned to data banks, we present a novel optimization technique that minimizes the overhead of bank switching through cost-effective placement of bank selection instructions. The placement is controlled by a number of different objectives, such as runtime, low power, small code size or a combination of these parameters. We have formulated the minimal placement of bank selection instructions as a discrete optimization problem that is mapped to a partitioned boolean quadratic programming (PBQP) problem. We implemented the optimization as part of a PIC Microchip backend and evaluated the approach for several optimization objectives. Our benchmark suite comprises programs from MiBench and DSPStone plus a microcontroller real-time kernel and drivers for microcontroller hardware devices. Our optimization achieved a reduction in program memory space of between 2.7 and 18.2&percent;, and an overall improvement with respect to instruction cycles between 5.0 and 28.8&percent;. Our optimization achieved the minimal solution for all benchmark programs. We investigated the scalability of our approach toward the requirements of future generations of microcontrollers. This study was conducted as a worst-case analysis on the entire MiBench suite. Our results show that our optimization (1) scales well to larger numbers of memory banks, (2) scales well to the larger problem sizes that will become feasible with future microcontrollers, and (3) achieves minimal placement for more than 72&percent; of all functions from MiBench.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
 
2
Bryant, R. E. and O'Halloran, D. R. 2003. Computer Systems: A Programmer's Perspective. Prentice-Hall, Englewood Cliffs, NJ.
 
3
4
 
5
Dattalo, T. S. 2006. The Gpsim SW simulator for PIC microcontrollers. http://www.dattalo.com/gnupic/gpsim.html.
6
 
7
Eckstein, E. 2003. Code optimizations for digital signal processors. Ph.D. thesis, Institute of Computer Languages, Compilers and Languages Group, Vienna University of Technology.
 
8
Fursin, G., Cavazos, J., O'Boyle, M., and Temam, O. 2007. MiDataSets: Creating the conditions for a more realistic evaluation of iterative optimization. In Proceedings of the International Conference on High Performance Embedded Architectures & Compilers (HiPEAC 2007). Vol. 4367. Springer LNCS, 245--260.
 
9
Gartner Dataquest. 2004. 2003 microcontroller market share and unit shipments.
 
10
Gartner Dataquest. 2005. Top companies revenue from shipments of 8-bit mcu---all applications.
 
11
 
12
Hames, L. and Scholz, B. 2006. Nearly optimal register allocation with PBQP. In Proceedings of the 7th Joint Modular Languages Conference (JMLC'06). LNCS, vol. 4228. Springer, New York. 346--361.
13
14
 
15
HI-TECH Software. 2006. PICC ANSI C Compiler. http://www.htsoft.com/.
16
 
17
18
 
19
 
20
 
21
Microchip Technology Inc. 1997. PICmicro mid-range MCU family reference manual.
 
22
Microchip Technology Inc. 2003. PIC16F87XA data sheet.
 
23
Microchip Technology Inc. 2006. PIC18F97J60 family data sheet, advance information.
 
24
MicrochipC.com. 2006. PIC micros and C. http://www.microchipc.com/.
 
25
26
 
27
28
29
 
30
31
32
33
 
34
35
 
36
 
37
 
38

Collaborative Colleagues:
Bernhard Scholz: colleagues
Bernd Burgstaller: colleagues
Jingling Xue: colleagues