SuperH
Designer | Encoding SH-2: 16-bit instructions | SH-2A and newer: mixed 16- and 32-bit instructions |
---|---|---|
Endianness | Bi | |
Open | Yes, and royalty-free[2] |
SuperH (or SH) is a
.At the time of introduction, SuperH was notable for having fixed-length 16-bit instructions in spite of its 32-bit architecture. Using smaller instructions had consequences: the
Later versions of the design, starting with SH-5, included both 16- and 32-bit instructions, with the 16-bit versions mapping onto the 32-bit version inside the CPU. This allowed the
In 2015, many of the original
History
SH-1 and SH-2

The SuperH processor core family was first developed by
In the past, this sort of design problem would have been solved using microcode, with the low-end models in the series performing non-implemented instructions as a series of more basic instructions. For instance, a "long multiply" (multiplying two 32-bit registers to produce a 64-bit product) might be implemented in hardware on high-end models but instead be performed as a series of additions on low-end models.
One of the key realizations during the development of the
MUL
, DMULS
and DMULU
, whereas the SH-1 would cause a trap if these were encountered.[3]The SH-1 was the basic model, supporting a total of 56 instructions. The SH-2 added 64-bit multiplication and a few additional commands for branching and other duties, bringing the total to 62 supported instructions.
The ISA uses
Delayed branches are introduced for both SH-1 and SH-2. Unconditional branch instructions have one delay slot.[6]
SH-3
A few years later, the SH-3 core was added to the family; new features included another interrupt concept, a memory management unit (MMU), and a modified cache concept. These features required an extended instruction set, adding six new instructions for a total of 68.[3] The SH-3 was bi-endian, running in either big-endian or little-endian byte ordering.
The SH-3 core also added a
Between 1994 and 1996, 35.1 million SuperH devices were shipped worldwide.[7]
SH-4
In 1997, Hitachi and
Licensing
In early 2001, Hitachi and STM formed the IP company SuperH, Inc., which was going to license the SH-4 core to other companies and was developing the SH-5 architecture, the first move of SuperH into the 64-bit area. The earlier SH-1 through 3 remained the property of Hitachi.[8][9]
In 2003, Hitachi and
The SH-5 design supported two modes of operation: SHcompact mode, which is equivalent to the user-mode instructions of the SH-4 instruction set; and SHmedia mode, which is very different in that it uses 32-bit instructions with sixty-four 64-bit integer registers and
processors have a MIPS-16 mode. However, SH-5 differs because its backward compatibility mode is the 16-bit encoding rather than the 32-bit encoding.The last evolutionary step happened around 2003 where the cores from SH-2 up to SH-4 were getting unified into a superscalar SH-X core which formed a kind of instruction set superset of the previous architectures, and added support for symmetric multiprocessing.
Continued availability
Since 2010, the SuperH CPU cores, architecture and products are with
As of 2021, the SH72xx microcontrollers based on the SH-2A continue to be marketed by Renesas with guaranteed availability until February 2029, along with newer products based on several other architectures including
J Core
The last of the SH-2 patents expired in 2014. At
The
Several features of SuperH have been cited as motivations for designing new cores based on this architecture:[11]
- High important for cache and memory bandwidth performance
- Existing )
- Extremely low ASIC fabricationcosts now that the patents are expiring (around US$0.03 for a dual-core J2 core on TSMC's 180 nm process).
- Patent- and royalty-free (BSD-licensed) implementation
- Full and vibrant community support
- Availability of low cost hardware development platform for zero cost FPGA tools
- CPU and SoC RTL generation and integration tools, producing FPGA and ASIC portable RTL and documentation
- Clean, modern design with open source design, generation, simulation and verification environment
Models
Clock [MHz] |
Computer performance | Image | |||
---|---|---|---|---|---|
MIPS |
MOPS | GFLOPS
| |||
SH-1 | 20 | 20 | ![]() | ||
SH-2 | 28,7 | 78 | 120 | ![]() | |
SH-3 | 200 | 260 | 400 | ![]() | |
SH-4 | 200 | 480 | 1,9 | ![]() | |
SH-5 | 400 | 700 | 9600 | 2,8 | |
SH-6 | >2000 | >24000 | >7,0 |
The family of SuperH CPU cores includes:
- SH-1 – used in microcontrollers for deeply embedded applications (CD-ROM drives, major appliances, etc.)
- SH-2 – used in microcontrollers with higher performance requirements, networking applications, and also in video game consoles, like the Sega 32X add-on. The SH-2 has also found home in many automotive engine control unit applications, including Subaru, Mitsubishi, and Mazda.
- SH-2A – The SH-2A core is an extension of the SH-2 core including a few extra instructions but most importantly moving to a superscalar architecture (it is capable of executing more than one instruction in a single cycle) and two five-stage pipelines. It also incorporates 15 register banks to facilitate an interrupt latency of 6 clock cycles. It is also strong in motor control application but also in multimedia, car audio, powertrain, automotive body control and office + building automation
- SH-DSP – initially developed for the mobile phone market, used later in many consumer applications requiring DSP performance for JPEG compression etc.
- SH-3 – used for mobile and handheld applications such as the Sega NAOMI hardware's CPU, also made use of this CPU. The Korg Electribe EMX and ESX music production units also use the SH-3.[17]
- SH-3-DSP – used mainly in multimedia terminals and networking applications, also in printers and fax machines
- SH-4 – used whenever high performance is required such as car multimedia terminals, video game consoles, most notably the Dreamcast, or set-top boxes
- SH-5 – used in high-end 64-bit multimedia applications
- SH-X – mainstream core used in various flavours (with/without DSP or FPU unit) in engine control unit, car multimedia equipment, set-top boxes or mobile phones
- SH-Mobile – SuperH Mobile Application Processor; designed to offload application processing from the baseband LSI
SH-2

The SH-2 is a 32-bit RISC architecture with a 16-bit fixed instruction length for high code density and features a hardware
The SH-2 has a cache on all ROM-less devices.
It provides 16 general-purpose registers, a vector-base register, global-base register, and a procedure register.
Today the SH-2 family stretches from 32 KB of on-board flash up to ROM-less devices. It is used in a variety of different devices with differing peripherals such as CAN, Ethernet, motor-control timer unit, fast ADC and others.
SH-2A
The SH-2A is an upgrade to the SH-2 core that added some 32-bit instructions. It was announced in early 2006.
New features on the SH-2A core include:
- Superscalar architecture: execution of 2 instructions simultaneously
- Harvard architecture
- Two 5-stage pipelines
- Mixed 16-bit and 32-bit instructions
- 15 register banks for interrupt response in 6 cycles.
- Optional FPU
The SH-2A family today spans a wide memory field from 16 KB up to and includes many ROM-less variations. The devices feature standard peripherals such as
SH-3

SH-4
The SH-4 is a RISC CPU and was developed for primary use in multimedia applications, such as Sega's Dreamcast and NAOMI game systems. It includes a much more powerful floating-point unit[note] and additional built-in functions, along with the standard 32-bit integer processing and 16-bit instruction size.
SH-4 features include:
- FPU with four floating-point multipliers, supporting 32-bit single-precision and 64-bit double-precision floats
- 4D floating-point matrix–vector multiplication
- 128-bit floating-point bus allowing 3.2 GB/sec transfer rate from the data cache
- 64-bit external data bus with 32-bit memory addressing, allowing a maximum of 4 GB addressable memory (see Byte addressing) with a transfer rate of 800 MB/sec
- Built-in interrupt, DMA, and power management controllers
^ There is no FPU in the custom SH-4 made for Casio, the SH7305.
SH-5
The SH-5 is a 64-bit RISC CPU.[18]
Almost no non-simulated SH-5 hardware was ever released,[19] and, unlike the still-live SH-4, support for SH-5 was dropped from GCC[20] and Linux.
SH-6
SH-6 was an announced but never implemented further development. It was supposed to achieve over 2 GIPS, over 7 GFLOPS and over 24 GOPS.[16]
References
Citations
- ^ "The Story of the Hitachi SH-2 and the Sega Saturn". www.sega-16.com. Renesas. Archived from the original on 2023-02-27. Retrieved 27 February 2023.
- ^ J-core Open Processor
- ^ a b c Program 1996, p. 1.
- ^ "CP System III (CPS3) Hardware (Capcom)". www.system16.com. System 16. Retrieved 3 August 2019.
- ^ Program 1996, pp. 30–33.
- ^ "SH7020 and SH7021 Hardware ManualSuperH™ RISC engine". p. 19,48. Retrieved 2023-12-02.
- ^ "360-MIPS SuperH RISC Processor Enables Personal Access Systems SH7750 Launches the SH-4 Series". November 1997. Archived from the original on 5 March 2016.
- ^ a b "STMicro, Hitachi plan new company to develop RISC cores". EE Times. 3 April 2001.
Hitachi created the SH family of processors and developed its first four major iterations, but has worked with ST since 1997, when the companies agreed to share a common high-end microprocessor road map. They jointly developed the 32-bit SH4 RISC processor core, and began development of the SH5 architecture, which will now be completed by SuperH. SuperH's initial product will be the SH4 core. Earlier SH versions will not be part of the spin-off agreement.
- ^ "SuperH, Inc. formed by Hitachi and STMicroelectronics to Boost the Proliferation of SuperH Cores in Embedded Microprocessor Applications". Archived from the original on February 19, 2016.
- ^ Clarke, Peter (28 September 2004). "Renesas to take over SuperH core business". EE Times.
- ^ a b c d e Nathan Willis (June 10, 2015). "Resurrecting the SuperH architecture". LWN.net.
- ^ ""SuperH RISC Engine Family MCUs"". Renesas Electronics.
- ^ a b "J Cores". j-core. Archived from the original on May 11, 2016. Retrieved April 27, 2016.
- ^ "j-core Design Walkthrough" (PDF). Archived (PDF) from the original on 2016-06-17.
- ^ V.M. Weaver (17 March 2015). "Exploring the Limits of Code Density (Tech Report with Newest Results)" (PDF). Archived (PDF) from the original on 2015-07-13.
- ^ a b Fumio Arakawa (2013-07-27). "SH-5: A First 64-bit SuperH Core with Multimedia Extension" (PDF; 617 kB). Hitachi, Ltd. Retrieved 2022-02-08.
- ^ Kuwabara, M. (25 July 2019). "Korg EMX / ESX Service Manual" (PDF). Archived from the original (PDF) on 13 July 2019.
- ^ "SH-5 CPU Core, Volume1: Architecture" (PDF). Archived (PDF) from the original on 2009-03-20.
- ^ "Wasabi SH-5 Press Release". 8 March 2016.
- ^ "GCC 7 Release Series Changes, New Features, and Fixes". 2 February 2018.
Bibliography
- SuperH RISC Engine SH-1/SH-2 Programming Manual (PDF). Hitachi Americal Ltd. 3 September 1996. Retrieved 2020-12-06.
- SH-4 CPU Core Architecture (PDF). STMicroelectronics and Hitachi Ltd. 12 September 2002. ADCS 7182230F. Retrieved 2020-12-06.
External links
- Renesas SuperH, Products, Tools, Manuals, App.Notes, Information
- J-core Open Processor
- J-core on GitHub
- Linux SuperH development list
- DCTP - Hitachi 200 MHz SH-4 at the Wayback Machine (archived August 10, 2016)
- in-progress Debian port for SH4
- Chen, Raymond (5 August 2019). "The SuperH-3, part 1: Introduction". The Old New Thing (blog). Retrieved 2024-01-22. A 15-part series on programming for the microprocessor.