戍怎么读音是什么| 宝宝惊跳反射什么时候消失| 黑蝴蝶代表什么| 宝宝喝什么奶粉好| 性冷淡是什么意思| 今天开什么奖| 什么是竖式计算| 为什么长不胖一直很瘦| 孤帆远影碧空尽的尽是什么意思| 百米12秒什么水平| 腰痛什么原因| 血管为什么会堵塞| npc是什么意思| 黑绿色大便是什么原因| 淋巴结影是什么意思| 喝什么可以减肥| 当兵苦到什么程度| 口红是用什么做的| 吃洋葱有什么好处和坏处| 北京古代叫什么| 炒熟的黑豆有什么功效| 线下培训是什么意思| 血红蛋白低吃什么可以补起来| 血糖高要忌口什么| 大唐集团什么级别| 为什么要做试管婴儿| 喝什么解酒| 刑警是干什么的| 白细胞高是什么原因造成的| 作价是什么意思| 稷字五行属什么| 梦见搬家是什么意思| 胰腺炎能吃什么| 为什么咳嗽一直不好| 双子座前面是什么星座| 右手手背有痣代表什么| 脑溢血是什么原因引起的| 肾病应该吃什么| 最小的动物是什么| 工夫是什么意思| 痛风买什么药| 防晒衣什么颜色最防晒| 小腿发痒是什么原因| 灵芝孢子粉什么时候吃最好| 梦见女尸是什么预兆| 黑松露是什么| 年上年下是什么意思| 荷花又什么又什么| 23是什么生肖| 痢疾吃什么药最有效| 1953年属什么| 为什么身上老是痒| 女人吃什么越来越年轻| 钙对人体有什么作用| 888红包代表什么意思| 前列腺特异性抗原高是什么原因| 梦见吃药是什么意思| 赞字五行属什么| 白细胞低是怎么回事有什么危害| 健身吃什么| 九八年属什么生肖| 天地人和是什么意思| 血脂查什么项目| 什么鞋油好用| 什么是虚岁| 富硒是什么意思| 红班狠疮的早期症状是什么| 回奶吃什么| 贝尔发明了什么东西| 什么是邮箱地址| 阴历7月22是什么日子| 男人时间短什么原因| 城镇户口是什么意思| 肾上腺素高会导致什么| 小排畸主要检查什么| 珍珠米是什么米| 秦始皇什么星座| 流产后吃什么水果最佳| 老人吃什么水果对身体好| 烤鱼一般用什么鱼| 结膜出血是什么原因| 冬天手脚冰凉是什么原因怎么调理| 半斤八两什么意思| 红眼病吃什么药| 腻歪是什么意思| 智齿不拔有什么危害| 幽门螺杆菌阴性是什么意思| 什么人不适合艾灸| circle是什么意思| 屮艸芔茻什么意思| 同房是什么| 南京有什么特产可以带回家| 翻白草治什么病| 慢性咽喉炎吃什么药| 5.20是什么星座| 梦见老板是什么意思| 女人内心强大说明什么| 梦到前女友是什么意思| 养精蓄锐是什么意思| 大便颗粒状是什么原因造成的| 乳房皮肤痒是什么原因| 年轻人血压高是什么原因引起的| 淞字五行属什么| 企业性质指的是什么| 强龙不压地头蛇是什么生肖| 什么是树莓| 手抖吃什么药| 祛痣后应注意什么| 排卵期出血是什么原因| 奇脉见于什么病| 主母是什么意思| 右附件区囊肿是什么意思| 降压药什么时候吃好| sp是什么| 糖类抗原153偏高是什么原因| 颈椎看什么科| 冬眠灵是什么药| 姨妈提前是什么原因| 喜欢一个人是什么感觉| 逝者已矣生者如斯是什么意思| 吃四方是什么生肖| 男性疝气是什么病| 琅琊榜是什么意思| 敲打是什么意思| 老人头晕是什么原因引起的| 女人为什么会得甲状腺| 明虾是什么虾| 教育的目的是什么| 遗精吃什么药| 摩卡是什么意思| 青汁是什么| 宫颈癌早期什么症状| 520是什么意思表白| 烟酒不沾的人什么性格| 7月一日是什么节日| 骨盆前倾挂什么科| 甲泼尼龙主要治什么| bv是什么品牌| 6.12是什么星座| m是什么码| 蛇吃什么| 血液肿瘤是什么病| 大拇指发麻是什么原因| 事物指的是什么| 八戒是什么意思| 跳蚤长什么样子图片| 慢悠悠的近义词是什么| 寿司醋可以用什么代替| 龟粮什么牌子的好| 男士脸黑穿什么颜色好| mirror什么意思| 绿茶女是什么意思| camper是什么牌子| 啸是什么生肖| 过敏性荨麻疹吃什么药| d2聚体高是什么原因| 毛囊炎是什么样子| yet什么意思| 氨水是什么东西| 16开是什么意思| 吃什么睡眠好| 八面玲珑指什么生肖| 吃什么食物补阳气| 屎为什么是臭的| 厨房墙砖什么颜色好看| 血尿酸偏高是什么原因| 遗精是什么原因引起的| 咳嗽能吃什么水果| 秀禾服是什么意思| 11月7日什么星座| 原来是什么意思| 打招呼是什么意思| 甲状腺回声不均匀什么意思| 寿元是什么意思| 柱状上皮外移什么意思| 半永久是什么意思| 毒龙是什么意思啊| 中午吃什么| 脸发麻是什么原因| 当我谈跑步时我谈些什么| 还珠格格什么时候上映的| 女人梦见狼是什么预兆| 支气管炎性改变是什么意思| 七宗罪是什么| 男人身体虚吃什么补| 人乳头瘤病毒51型阳性是什么意思| 一冷就咳嗽是什么原因| 老是咳嗽挂什么科| 有什么事| 眼睛有眼屎是什么原因引起的| mds医学上是什么意思| 咳嗽有白痰吃什么药好| 白癜风早期症状是什么| 颈椎病用什么枕头最好| olay是什么牌子| 急性咽喉炎吃什么药好得快| 脂肪瘤去医院挂什么科| 肾在五行中属什么| 按摩脚底有什么好处| 猫砂是什么| 外阴瘙痒用什么药好| blm是什么意思| 国际章是什么意思| 小孩过敏吃什么药| 什么样才是包皮| 鸟屎掉身上有什么预兆| ur是什么意思| 医助是什么工作| 苦瓜为什么是苦的| 乳腺结节吃什么食物好| 81是什么节日| 文静是什么意思| 逍遥丸配什么治失眠| 气短是什么感觉| 后腰左侧疼痛是什么原因男性| 儿童乳房发育挂什么科| 女人晚上盗汗是什么原因| 什么是副乳| 腹泻是什么症状| 性病是什么病| 什么的万里长城| 双什么意思| 梦见老公穿新衣服是什么意思| 测怀孕什么时候最准| 灵芝有什么作用与功效| 如是观是什么意思| 肾气不足是什么原因| 迎春花像什么| 给女生送礼物送什么好| 肌酐高什么东西不能吃| 球镜是什么意思| 处女什么意思| 活动无耐力与什么有关| 哀伤是什么意思| 腿为什么肿| 腼腆什么意思| 血小板是什么意思| 01是什么意思| 过敏嘴唇肿是什么原因| 荻是什么意思| 14年婚姻是什么婚| 臭虫怕什么| 孕妇吃山竹对胎儿有什么好处| 女生男相的是什么命| 张国荣为什么喜欢男的| nit是什么意思| 助产是干什么的| 小孩子为什么会得抽动症| 化骨龙是什么意思| 印泥干了用什么稀释| 军分区司令是什么级别| 辣木籽是什么| 营卫是什么意思| pt950是什么意思| 天津市市长什么级别| brush什么意思| 代谢慢是什么原因| 银河是什么| 氧气湿化瓶里加什么水| 瓦特发明了什么| 孕妇吃葡萄对胎儿有什么好处| 血常规检查挂什么科| 盐酸二甲双胍缓释片什么时候吃| 什么样的人可以通灵| 百度

修文视窗--贵州频道--人民网

百度 购买和分享课程,其初衷究竟是分享知识,还是类似传销?有律师表示,实际上这种多级分销的方式已经符合法律上对于传销的构成要件,会对市场竞争造成不公平的影响。

SPARC (Scalable Processor ARChitecture) is a reduced instruction set computer (RISC) instruction set architecture originally developed by Sun Microsystems. Its design was strongly influenced by the experimental Berkeley RISC system developed in the early 1980s. First developed in 1986 and released in 1987, SPARC was one of the most successful early commercial RISC systems, and its success led to the introduction of similar RISC designs from many vendors through the 1980s and 1990s. After acquiring Sun, Oracle Corporation ended SPARC development in 2017, although development of SPARC processors by Fujitsu continues.

SPARC
DesignerSun Microsystems (acquired by Oracle Corporation)[1][2]
Bits64-bit (32 → 64)
Introduced1986; 39?years ago?(1986) (production)
1987; 38?years ago?(1987) (shipments)
VersionV9 (1993) / OSA2017
DesignRISC
TypeLoad–store
EncodingFixed
BranchingCondition code
EndiannessBi (Big → Bi)
Page size8 KB (4 KB → 8 KB)
ExtensionsVIS 1.0, 2.0, 3.0, 4.0
OpenYes, and royalty free
Registers
General-purpose31 (G0 = 0; non-global registers use register windows)
Floating point32 (usable as 32 single-precision, 32 double-precision, or 16 quad-precision)
A Sun UltraSPARC II microprocessor (1997)

Description

edit

By the mid-1980s the computer industry's consensus was that RISC had a much better price/performance ratio than traditional CISC architecture. Workstation vendor Sun Microsystems decided to move to RISC as fast as possible from the Motorola 68000 series of processors.[3]

The first implementation of the original 32-bit architecture (SPARC V7) was used in Sun's Sun-4 computer workstation and server systems, replacing their earlier Sun-3 systems based on the Motorola 68000 series. SPARC V8 added a number of improvements that were part of the SuperSPARC series of processors released in 1992. SPARC V9, released in 1993, introduced a 64-bit architecture and was first released in Sun's UltraSPARC processors in 1995. Later, SPARC processors were used in symmetric multiprocessing (SMP) and non-uniform memory access (CC-NUMA) servers produced by Sun, Solbourne, and Fujitsu, among others.

The design was turned over to the SPARC International trade group in 1989, and since then its architecture has been developed by its members. SPARC International is also responsible for licensing and promoting the SPARC architecture, managing SPARC trademarks (including SPARC, which it owns), and providing conformance testing. SPARC International was intended to grow the SPARC architecture to create a larger ecosystem; SPARC has been licensed to several manufacturers, including Atmel, Bipolar Integrated Technology, Cypress Semiconductor, Fujitsu, Matsushita and Texas Instruments. Due to SPARC International, SPARC is fully open, non-proprietary and royalty-free.

As of 2024, the latest commercial high-end SPARC processors are Fujitsu's SPARC64 XII (introduced in September 2017 for its SPARC M12 server) and Oracle's SPARC M8 introduced in September 2017 for its high-end servers.

On September 1, 2017, after a round of layoffs that started in Oracle Labs in November 2016, Oracle terminated SPARC design after completing the M8. Much of the processor core development group in Austin, Texas, was dismissed, as were the teams in Santa Clara, California, and Burlington, Massachusetts.[4][5]

Fujitsu will also discontinue their SPARC production (has already shifted to producing their own ARM-based CPUs), after two "enhanced" versions of Fujitsu's older SPARC M12 server in 2020–22 (formerly planned for 2021) and again in 2026–27, end-of-sale in 2029, of UNIX servers and a year later for their mainframe and end-of-support in 2034 "to promote customer modernization".[6]

Features

edit

The SPARC architecture was heavily influenced by the earlier RISC designs, including the Berkeley RISC I and II from the University of California, Berkeley and the IBM 801. These original RISC designs were minimalist, including as few features or op-codes as possible and aiming to execute instructions at a rate of almost one instruction per clock cycle. This made them similar to the MIPS architecture in many ways, including the lack of instructions such as multiply or divide. Another feature of SPARC influenced by this early RISC movement is the branch delay slot.

The SPARC processor usually contains as many as 160 general-purpose registers. According to the "Oracle SPARC Architecture 2015" specification an "implementation may contain from 72 to 640 general-purpose 64-bit" registers.[7] At any point, only 32 of them are immediately visible to software?— 8 are a set of global registers (one of which, g0, is hard-wired to zero, so only seven of them are usable as registers) and the other 24 are from the stack of registers. These 24 registers form what is called a register window, and at function call/return, this window is moved up and down the register stack. Each window has eight local registers and shares eight registers with each of the adjacent windows. The shared registers are used for passing function parameters and returning values, and the local registers are used for retaining local values across function calls.

The "scalable" in SPARC comes from the fact that the SPARC specification allows implementations to scale from embedded processors up through large server processors, all sharing the same core (non-privileged) instruction set. One of the architectural parameters that can scale is the number of implemented register windows; the specification allows from three to 32 windows to be implemented, so the implementation can choose to implement all 32 to provide maximum call stack efficiency, or to implement only three to reduce cost and complexity of the design, or to implement some number between them. Other architectures that include similar register file features include Intel i960, IA-64, and AMD 29000.

The architecture has gone through several revisions. It gained hardware multiply and divide functionality in version 8.[8][9] 64-bit (addressing and data) were added to the version 9 SPARC specification published in 1994.[10]

In SPARC version 8, the floating-point register file has 16 double-precision registers. Each of them can be used as two single-precision registers, providing a total of 32 single-precision registers. An odd–even number pair of double-precision registers can be used as a quad-precision register, thus allowing 8 quad-precision registers. SPARC Version 9 added 16 more double-precision registers (which can also be accessed as 8 quad-precision registers), but these additional registers can not be accessed as single-precision registers. No SPARC CPU implements quad-precision operations in hardware as of 2024.[11]

Tagged add and subtract instructions perform adds and subtracts on values checking that the bottom two bits of both operands are 0 and reporting overflow if they are not. This can be useful in the implementation of the run time for ML, Lisp, and similar languages that might use a tagged integer format.

The endianness of the 32-bit SPARC V8 architecture is purely big-endian. The 64-bit SPARC V9 architecture uses big-endian instructions, but can access data in either big-endian or little-endian byte order, chosen either at the application instruction (load–store) level or at the memory page level (via an MMU setting). The latter is often used for accessing data from inherently little-endian devices, such as those on PCI buses.

History

edit

There have been three major revisions of the architecture. The first published version was the 32-bit SPARC version 7 (V7) in 1986. SPARC version 8 (V8), an enhanced SPARC architecture definition, was released in 1990. The main differences between V7 and V8 were the addition of integer multiply and divide instructions, and an upgrade from 80-bit "extended-precision" floating-point arithmetic to 128-bit "quad-precision" arithmetic. SPARC V8 served as the basis for IEEE Standard 1754-1994, an IEEE standard for a 32-bit microprocessor architecture.

SPARC version 9, the 64-bit SPARC architecture, was released by SPARC International in 1993. It was developed by the SPARC Architecture Committee consisting of Amdahl Corporation, Fujitsu, ICL, LSI Logic, Matsushita, Philips, Ross Technology, Sun Microsystems, and Texas Instruments. Newer specifications always remain compliant with the full SPARC V9 Level 1 specification.

In 2002, the SPARC Joint Programming Specification 1 (JPS1) was released by Fujitsu and Sun, describing processor functions which were identically implemented in the CPUs of both companies ("Commonality"). The first CPUs conforming to JPS1 were the UltraSPARC III by Sun and the SPARC64 V by Fujitsu. Functionalities which are not covered by JPS1 are documented for each processor in "Implementation Supplements".

At the end of 2003, JPS2 was released to support multicore CPUs. The first CPUs conforming to JPS2 were the UltraSPARC IV by Sun and the SPARC64 VI by Fujitsu.

In early 2006, Sun released an extended architecture specification, UltraSPARC Architecture 2005. This includes not only the non-privileged and most of the privileged portions of SPARC V9, but also all the architectural extensions developed through the processor generations of UltraSPARC III, IV, and IV+, as well as CMT extensions starting with the UltraSPARC T1 implementation:

  • the VIS 1 and VIS 2 instruction set extensions and the associated GSR register
  • multiple levels of global registers, controlled by the GL register
  • Sun's 64-bit MMU architecture
  • privileged instructions ALLCLEAN, OTHERW, NORMALW, and INVALW
  • access to the VER register is now hyperprivileged
  • the SIR instruction is now hyperprivileged

In 2007, Sun released an updated specification, UltraSPARC Architecture 2007, to which the UltraSPARC T2 implementation complied.

In December 2007, Sun also made the UltraSPARC T2 processor's RTL available via the OpenSPARC project.[12] It was also released under the GNU General public license v2.[13] OpenSPARC T2 is 8 cores, 16 pipelines with 64 threads.

In August 2012, Oracle Corporation made available a new specification, Oracle SPARC Architecture 2011, which besides the overall update of the reference, adds the VIS 3 instruction set extensions and hyperprivileged mode to the 2007 specification.[14]

In October 2015, Oracle released SPARC M7, the first processor based on the new Oracle SPARC Architecture 2015 specification.[7][15] This revision includes VIS 4 instruction set extensions and hardware-assisted encryption and silicon secured memory (SSM).[16]

SPARC architecture has provided continuous application binary compatibility from the first SPARC V7 implementation in 1987 through the Sun UltraSPARC Architecture implementations.

Among various implementations of SPARC, Sun's SuperSPARC and UltraSPARC-I were very popular, and were used as reference systems for SPEC CPU95 and CPU2000 benchmarks. The 296?MHz UltraSPARC-II is the reference system for the SPEC CPU2006 benchmark.

Architecture

edit

SPARC is a load–store architecture (also known as a register–register architecture); except for the load/store instructions used to access memory, all instructions operate on the registers, in accordance with the RISC design principles.

A SPARC processor includes an integer unit (IU) that performs integer load, store, and arithmetic operations.[17]:?9?[10]:?15–16? It may include a floating-point unit (FPU) that performs floating-point operations[17]:?9?[10]:?15–16? and, for SPARC V8, may include a co-processor (CP) that performs co-processor-specific operations; the architecture does not specify what functions a co-processor would perform, other than load and store operations.[17]:?9?

Registers

edit

The SPARC architecture has an overlapping register window scheme. At any instant, 32 general-purpose registers are visible. A Current Window Pointer (CWP) variable in the hardware points to the current set. The total size of the register file is not part of the architecture, allowing more registers to be added as the technology improves, up to a maximum of 32 windows in SPARC V7 and V8 as CWP is 5 bits and is part of the PSR register.

In SPARC V7 and V8 CWP will usually be decremented by the SAVE instruction (used by the SAVE instruction during the procedure call to open a new stack frame and switch the register window), or incremented by the RESTORE instruction (switching back to the call before returning from the procedure). Trap events (interrupts, exceptions or TRAP instructions) and RETT instructions (returning from traps) also change the CWP. For SPARC V9, CWP register is decremented during a RESTORE instruction, and incremented during a SAVE instruction. This is the opposite of PSR.CWP's behavior in SPARC V8. This change has no effect on nonprivileged instructions.

Window Addressing
Register group Mnemonic Register address Availability
global G0...G7 R[0]...R[7] always the same ones, G0 being zero always
out O0...O7 R[8]...R[15] to be handed over to, and returned from, the called subroutine, as its "in"
local L0...L7 R[16]...R[23] truly local to the current subroutine
in I0...I7 R[24]...R[31] handed over from the caller, and returned to the caller, as its "out"

SPARC registers are shown in the figure above.

There is also a non-windowed Y register, used by the multiply-step, integer multiply, and integer divide instructions.[17]:?32?

A SPARC V8 processor with an FPU includes 32 32-bit floating-point registers, each of which can hold one single-precision IEEE 754 floating-point number. An even–odd pair of floating-point registers can hold one double-precision IEEE 754 floating-point number, and a quad-aligned group of four floating-point registers can hold one quad-precision IEEE 754 floating-point number.[17]:?10?

A SPARC V9 processor with an FPU includes:[10]:?36–40?

  • 32 32-bit floating-point registers, each of which can hold one single-precision IEEE 754 floating-point number;
  • 32 64-bit floating-point registers, each of which can hold one double-precision IEEE 754 floating-point number;
  • 16 128-bit floating-point registers, each of which can hold one quad-precision IEEE 754 floating-point number.

The registers are organized as a set of 64 32-bit registers, with the first 32 being used as the 32-bit floating-point registers, even–odd pairs of all 64 registers being used as the 64-bit floating-point registers, and quad-aligned groups of four floating-point registers being used as the 128-bit floating-point registers.

Floating-point registers are not windowed; they are all global registers.[10]:?36–40?

Instruction formats

edit

All SPARC instructions occupy a full 32-bit word and start on a word boundary. Four formats are used, distinguished by the first two bits. All arithmetic and logical instructions have 2 source operands and 1 destination operand.[18] RD is the "destination register", where the output of the operation is deposited. The majority of SPARC instructions have at least this register, so it is placed near the "front" of the instruction format. RS1 and RS2 are the "source registers", which may or may not be present, or replaced by a constant.

SPARC instruction formats
Type Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SETHI format 00 RD 100 Immediate constant 22 bits
I Branch format 00 A icc 010 Displacement constant 22 bits
F Branch format 00 A fcc 110 Displacement constant 22 bits
C Branch format 00 A ccc 111 Displacement constant 22 bits
CALL disp 01 PC-relative displacement
Arithmetic register 10 RD opcode RS1 0 0 RS2
Arithmetic immediate 10 RD opcode RS1 1 Immediate constant 13 bits
FPU operation 10 FD 110100/110101 FS1 opf FS2
CP operation 10 RD 110110/110111 RS1 opc RS2
JMPL register 10 RD 111000 RS1 0 0 RS2
JMPL immediate 10 RD 111000 RS1 1 Immediate constant 13 bits
LD/ST register 11 RD opcode RS1 0 0 RS2
LD/ST immediate 11 RD opcode RS1 1 Immediate constant 13 bits

Instructions

edit

Loads and stores

edit

Load and store instructions have a three-operand format, in that they have two operands representing values for the address and one operand for the register to read or write to. The address is created by adding the two address operands to produce an address. The second address operand may be a constant or a register. Loads take the value at the address and place it in the register specified by the third operand, whereas stores take the value in the register specified by the first operand and place it at the address. To make this more obvious, the assembler language indicates address operands using square brackets with a plus sign separating the operands, instead of using a comma-separated list. Examples:[18]

ld [%L1+%L2],%L3  !load the 32-bit value at address %L1+%L2 and put the value into %L3
ld [%L1+8],%L2    !load the value at %L1+8 into %L2
ld [%L1],%L2      !as above, but no offset, which is the same as +%G0
st %L1,[%I2]      !store the value in %L1 into the location stored in %I2
st %G0,[%I1+8]    !clear the memory at %I1+8

Due to the widespread use of non-32-bit data, such as 16-bit or 8-bit integral data or 8-bit bytes in strings, there are instructions that load and store 16-bit half-words and 8-bit bytes, as well as instructions that load 32-bit words. During a load, those instructions will read only the byte or half-word at the indicated location and then either fill the rest of the target register with zeros (unsigned load) or with the value of the uppermost bit of the byte or half-word (signed load). During a store, those instructions discard the upper bits in the register and store only the lower bits. There are also instructions for loading double-precision values used for floating-point arithmetic, reading or writing eight bytes from the indicated register and the "next" one, so if the destination of a load is L1, L1 and L2 will be set. The complete list of load and store instructions for the general-purpose registers in 32-bit SPARC is LD, ST, LDUB (unsigned byte), LDSB (signed byte), LDUH (unsigned half-word), LDSH (signed half-word), LDD (load double), STB (store byte), STH (store half-word), STD (store double).[18]

In SPARC V9, registers are 64-bit, and the LD instruction, renamed LDUW, clears the upper 32 bits in the register and loads the 32-bit value into the lower 32 bits, and the ST instruction, renamed STW, discards the upper 32 bits of the register and stores only the lower 32 bits. The new LDSW instruction sets the upper bits in the register to the value of the uppermost bit of the word and loads the 32-bit value into the lower bits. The new LDX instruction loads a 64-bit value into the register, and the STX instruction stores all 64 bits of the register.

The LDF, LDDF, and LDQF instructions load a single-precision, double-precision, or quad-precision value from memory into a floating-point register; the STF, STDF, and STQF instructions store a single-precision, double-precision, or quad-precision floating-point register into memory.

The memory barrier instruction, MEMBAR, serves two interrelated purposes: it articulates order constraints among memory references and facilitates explicit control over the completion of memory references. For example, all effects of the stores that appear prior to the MEMBAR instruction must be made visible to all processors before any loads following the MEMBAR can be executed.[19]

ALU operations

edit

Arithmetic and logical instructions also use a three-operand format, with the first two being the operands and the last being the location to store the result. The middle operand can be a register or a 13-bit signed integer constant; the other operands are registers. Any of the register operands may point to G0; pointing the result to G0 discards the results, which can be used for tests. Examples include:[18]

add %L1,%L2,%L3   !add the values in %L1 and %L2 and put the result in %L3
add %L1,1,%L1     !increment %L1
add %G0,%G0,%L4   !clear any value in %L4

The list of mathematical instructions is ADD, SUB, AND, OR, XOR, and negated versions ANDN, ORN, and XNOR. One quirk of the SPARC design is that most arithmetic instructions come in pairs, with one version setting the NZVC condition code bits in the status register, and the other not setting them, with the default being not to set the codes. This is so that the compiler has a way to move instructions around when trying to fill delay slots. If one wants the condition codes to be set, this is indicated by adding cc to the instruction:[18]

subcc %L1,10,%G0  !compare %L1 to 10 and ignore the result, but set the flags

add and sub also have another modifier, X, which indicates whether the operation should set the carry bit:

addx %L1,100,%L1  !add 100 to the value in %L1 and track carry

SPARC V7 does not have multiplication or division instructions, but it does have MULSCC, which does one step of a multiplication testing one bit and conditionally adding the multiplicand to the product. This was because MULSCC can complete over one clock cycle in keeping with the RISC philosophy. SPARC V8 added UMUL (unsigned multiply), SMUL (signed multiply), UDIV (unsigned divide), and SDIV (signed divide) instructions, with both versions that do not update the condition codes and versions that do. MULSCC and the multiply instructions use the Y register to hold the upper 32 bits of the product; the divide instructions use it to hold the upper 32 bits of the dividend. The RDY instruction reads the value of the Y register into a general-purpose register; the WRY instruction writes the value of a general-purpose register to the Y register.[17]:?32? SPARC V9 added MULX, which multiplies two 64-bit values and produces a 64-bit result, SDIVX, which divides a 64-bit signed dividend by a 64-bit signed divisor and produces a 64-bit signed quotient, and UDIVX, which divides a 64-bit unsigned dividend by a 64-bit unsigned divisor and produces a 64-bit signed quotient; none of those instructions use the Y register.[10]:?199?

Branching

edit

Conditional branches test condition codes in a status register, as seen in many instruction sets such the IBM System/360 architecture and successors and the x86 architecture. This means that a test and branch is normally performed with two instructions; the first is an ALU instruction that sets the condition codes, followed by a branch instruction that examines one of those flags. The SPARC does not have specialized test instructions; tests are performed using normal ALU instructions with the destination set to %G0. For instance, to test if a register holds the value 10 and then branch to code that handles it, one would:

subcc %L1,10,%G0 !subtract 10 from %L1, setting the zero flag if %L1 is 10
be WASEQUAL      !if the zero flag is set, branch to the address marked WASEQUAL

In a conditional branch instruction, the icc or fcc field specifies the condition being tested. The 22-bit displacement field is the address, relative to the current PC, of the target, in words, so that conditional branches can go forward or backward up to 8 megabytes. The ANNUL (A) bit is used to get rid of some delay slots. If it is 0 in a conditional branch, the delay slot is executed as usual. If it is 1, the delay slot is only executed if the branch is taken. If it is not taken, the instruction following the conditional branch is skipped.

There are a wide variety of conditional branches: BA (branch always, essentially a jmp), BN (branch never), BE (equals), BNE (not equals), BL (less than), BLE (less or equal), BLEU (less or equal, unsigned), BG (greater), BGE (greater or equal), BGU (greater unsigned), BPOS (positive), BNEG (negative), BCC (carry clear), BCS (carry set), BVC (overflow clear), BVS (overflow set).[17]:?119–120?

The FPU and CP have sets of condition codes separate from the integer condition codes and from each other; two additional sets of branch instructions were defined to test those condition codes. Adding an F to the front of the branch instruction in the list above performs the test against the FPU's condition codes,[17]:?121–122? while, in SPARC V8, adding a C tests the flags in the otherwise undefined CP.[17]:?123–124?

The CALL (jump to subroutine) instruction uses a 30-bit program counter-relative word offset. As the target address is specifying the start of a word, not a byte, 30-bits is all that is needed to reach any address in the 4 gigabyte address space.[18] The CALL instruction deposits the return address in register R15, also known as output register O7.

The JMPL (jump and link) instruction is a three-operand instruction, with two operands representing values for the target address and one operand for a register in which to deposit the return address. The address is created by adding the two address operands to produce a 32-bit address. The second address operand may be a constant or a register.

Large constants

edit

As the instruction opcode takes up some bits of the 32-bit instruction word, there is no way to load a 32-bit constant using a single instruction. This is significant because addresses are manipulated through registers and they are 32-bits. To ease this, the special-purpose SETHI instruction copies its 22-bit immediate operand into the high-order 22 bits of any specified register, and sets each of the low-order 10 bits to 0. In general use, SETHI is followed by an or instruction with only the lower 10 bits of the value set. To ease this, the assembler includes the %hi(X) and %lo(X) macros. For example:[18]

sethi %hi(0x89ABCDEF),%L1       !sets the upper 22 bits of L1
or    %L1,%lo(0x89ABCDEF),%L1   !sets the lower 10 bits of L1 by ORing

The hi and lo macros are performed at assembly time, not runtime, so it has no performance hit yet makes it clearer that L1 is set to a single value, not two unrelated ones. To make this even easier, the assembler also includes a "synthetic instruction", set, that performs these two operations in a single line:

set   0x89ABCDEF,% L1

This outputs the two instructions above if the value is larger than 13 bits, otherwise it will emit a single ld with the value.[18]

Synthetic instructions

edit

As noted earlier, the SPARC assembler uses "synthetic instructions" to ease common coding tasks. Additional examples include (among others):[18]

SPARC synthetic instructions
mnemonic actual output purpose
nop sethi 0,%g0 do nothing
clr %reg or %g0,%g0,%reg set a register to zero
clr [address] st %g0,[address] set a memory address to zero
clrh [address] sth %g0,[address] set the half-word at memory address to zero
clrb [address] stb %g0,[address] set the byte at memory address to zero
cmp %reg1,%reg2 subcc %reg1,%reg2,%g0 compare two registers, set codes, discard results
cmp %reg,const subcc %reg,const,%g0 compare register with constant
mov %reg1,%reg2 or %g0,%reg1,%reg2 copy value from one register to another
mov const,%reg or %g0,const,%reg copy constant value into a register
inc %reg add %reg,1,%reg increment a register
inccc %reg addcc %reg,1,%reg increment a register, set conditions
dec %reg sub %reg,1,%reg decrement a register
deccc %reg subcc %reg,1,%reg decrement a register, set conditions
not %reg xnor %reg,%g0,%reg flip the bits in a register
neg %reg sub %g0,%reg,%reg two's complement a register
tst %reg orcc %reg,%g0,%g0 test whether the value in a register is > 0, 0, or < 0

SPARC architecture licensees

edit

Intel was the 80386's only producer, which made it very expensive and caused the industry to be wary of sole sourced CPUs. When Sun announced SPARC in 1987, the company stated that it would be available from multiple sources. Fujitsu was the first SPARC vendor, and Cypress Semiconductor was the second licensee; as of February?1989 their SPARC CPUs were available, as was Texas Instruments's FPU.[20] The following organizations have licensed the SPARC architecture:

Implementations

edit

Notes:

  1. ^ a b Threads per core × number of cores
  2. ^ Various SPARC V7 implementations were produced by Fujitsu, LSI Logic, Weitek, Texas Instruments, Cypress and Temic. A SPARC V7 processor generally consisted of several discrete chips, usually comprising an integer unit (IU), a floating-point unit (FPU), a memory management unit (MMU) and cache memory. Conversely, the Atmel (now Microchip Technology) TSC695 is a single-chip SPARC V7 implementation.
  3. ^ @167?MHz
  4. ^ @250?MHz
  5. ^ @400?MHz
  6. ^ @440?MHz
  7. ^ max. @500?MHz
  8. ^ @1200?MHz
  9. ^ excluding I/O buses
  10. ^ nominal; specification from 100 to 424?MHz depending on attached RAM capabilities

Operating system support

edit

SPARC machines have generally used Sun's SunOS, Solaris, JavaOS, or OpenSolaris including derivatives illumos and OpenIndiana, but other operating systems have also been used, such as NeXTSTEP, RTEMS, FreeBSD, OpenBSD, NetBSD, and Linux.

In 1993, Intergraph announced a port of Windows NT to the SPARC architecture,[48] but it was later cancelled.

In October 2015, Oracle announced a "Linux for SPARC reference platform".[49]

Open source implementations

edit

Several fully open source implementations of the SPARC architecture exist:

  • LEON, a 32-bit radiation-tolerant, SPARC V8 implementation, designed especially for space use. Source code is written in VHDL, and licensed under the GPL.
  • OpenSPARC T1, released in 2006, a 64-bit, 32-thread implementation conforming to the UltraSPARC Architecture 2005 and to SPARC Version 9 (Level 1). Source code is written in Verilog, and licensed under many licenses. Most OpenSPARC T1 source code is licensed under the GPL. Source based on existent open source projects will continue to be licensed under their current licenses. Binary programs are licensed under a binary software license agreement.
  • S1, a 64-bit Wishbone compliant CPU core based on the OpenSPARC T1 design. It is a single UltraSPARC V9 core capable of 4-way SMT. Like the T1, the source code is licensed under the GPL.
  • OpenSPARC T2, released in 2008, a 64-bit, 64-thread implementation conforming to the UltraSPARC Architecture 2007 and to SPARC Version 9 (Level 1). Source code is written in Verilog, and licensed under many licenses. Most OpenSPARC T2 source code is licensed under the GPL. Source based on existing open source projects will continue to be licensed under their current licenses. Binary programs are licensed under a binary Software License Agreement.

A fully open source simulator for the SPARC architecture also exists:

  • RAMP Gold, a 32-bit, 64-thread SPARC Version 8 implementation, designed for FPGA-based architecture simulation. RAMP Gold is written in ~36,000 lines of SystemVerilog, and licensed under the BSD licenses.

Supercomputers

edit

For HPC loads Fujitsu builds specialized SPARC64 fx processors with a new instruction extensions set, called HPC-ACE (High Performance Computing – Arithmetic Computational Extensions).

Fujitsu's K computer ranked No.?1 in the TOP500 June 2011 and November 2011 lists. It combines 88,128 SPARC64 VIIIfx CPUs, each with eight cores, for a total of 705,024 cores—almost twice as many as any other system in the TOP500 at that time. The K Computer was more powerful than the next five systems on the list combined, and had the highest performance-to-power ratio of any supercomputer system.[50] It also ranked No.?6 in the Green500 June 2011 list, with a score of 824.56 MFLOPS/W.[51] In the November 2012 release of TOP500, the K computer ranked No.?3, using by far the most power of the top three.[52] It ranked No.?85 on the corresponding Green500 release.[53] Newer HPC processors, IXfx and XIfx, were included in recent PRIMEHPC FX10 and FX100 supercomputers.

Tianhe-2 (TOP500 No.?1 as of November 2014[54]) has a number of nodes with Galaxy FT-1500 OpenSPARC-based processors developed in China. However, those processors did not contribute to the LINPACK score.[55][56]

See also

edit
  • ERC32?— based on SPARC V7 specification
  • Ross Technology, Inc.?— a SPARC microprocessor developer during the 1980s and 1990s
  • Sparcle?— a modified SPARC with multiprocessing support used by the MIT Alewife project
  • LEON?— a space rated SPARC V8 processor.
  • R1000?— a Russian quad-core microprocessor based on SPARC V9 specification
  • Galaxy FT-1500?— a Chinese 16-core OpenSPARC-based processor

References

edit
  1. ^ a b "Fujitsu to take ARM into the realm of Super". The CPU Shack Museum. June 21, 2016. Archived from the original on June 30, 2019. Retrieved June 30, 2019.
  2. ^ a b "Timeline". SPARC International. Archived from the original on April 24, 2019. Retrieved June 30, 2019.
  3. ^ Bell, Gordon; Strecker, W.D. What Have We Learned from the PDP-11 - What We Have Learned from VAX and Alpha (PDF) (Report). Retrieved June 26, 2025.
  4. ^ Vaughan-Nichols, Steven J. (September 5, 2017). "Sun set: Oracle closes down last Sun product lines". ZDNet. Archived from the original on September 10, 2017. Retrieved September 11, 2017.
  5. ^ Nichols, Shaun (August 31, 2017). "Oracle finally decides to stop prolonging the inevitable, begins hardware layoffs". The Register. Archived from the original on September 12, 2017. Retrieved September 11, 2017.
  6. ^ "Roadmap: Fujitsu Global". www.fujitsu.com. Retrieved February 15, 2022.
  7. ^ a b "Oracle SPARC Architecture 2015: One Architecture ... Multiple Innovative Implementations" (PDF). Draft D1.0.0. January 12, 2016. Archived (PDF) from the original on April 24, 2016. Retrieved June 13, 2016. IMPL. DEP. #2-V8: An Oracle SPARC Architecture implementation may contain from 72 to 640 general-purpose 64-bit R registers. This corresponds to a grouping of the registers into MAXPGL + 1 sets of global R registers plus a circular stack of N_REG_WINDOWS sets of 16 registers each, known as register windows. The number of register windows present (N_REG_WINDOWS) is implementation dependent, within the range of 3 to 32 (inclusive).
  8. ^ "SPARC Options", Using the GNU Compiler Collection (GCC), GNU, archived from the original on January 9, 2013, retrieved January 8, 2013
  9. ^ SPARC Optimizations With GCC, OSNews, February 23, 2004, archived from the original on May 23, 2013, retrieved January 8, 2013
  10. ^ a b c d e f Weaver, D. L.; Germond, T., eds. (1994). The SPARC Architecture Manual, Version 9. SPARC International, Inc.: Prentice Hall. ISBN?0-13-825001-4. Retrieved May 27, 2023.
  11. ^ "SPARC Behavior and Implementation". Numerical Computation Guide – Sun Studio 10. Sun Microsystems, Inc. 2004. Archived from the original on January 25, 2022. Retrieved September 24, 2011. There are four situations, however, when the hardware will not successfully complete a floating-point instruction: ...?The instruction is not implemented by the hardware (such as?... quad-precision instructions on any SPARC FPU).
  12. ^ "Sun Accelerates Growth of UltraSPARC CMT Eco System". Sun Microsystems. Archived from the original on January 26, 2008.
  13. ^ "OpenSPARC Frequently Asked Questions". Oracle. Archived from the original on October 17, 2012. Retrieved March 20, 2021.
  14. ^ "Oracle SPARC Architecture 2011" (PDF), Oracle Corporation, May 21, 2014, archived (PDF) from the original on September 24, 2015, retrieved November 25, 2015
  15. ^ Soat, John. "SPARC M7 Innovation". Oracle web site. Oracle Corporation. Archived from the original on September 5, 2015. Retrieved October 13, 2015.
  16. ^ "Software in Silicon Cloud - Oracle". www.oracle.com. Archived from the original on January 21, 2019. Retrieved January 21, 2019.
  17. ^ a b c d e f g h i The SPARC Architecture Manual, Version 8. SPARC International, Inc. 1992. Retrieved May 27, 2023.
  18. ^ a b c d e f g h i "SPARC Fundamental Instructions".
  19. ^ "SPARC64 IXfx Extensions Fujitsu Limited Ver 12, 2 Dec. 2013" (PDF). pp.?103–104. Retrieved December 17, 2023.
  20. ^ a b c d e f Marshall, Trevor; Tazelaar, Jane Morrill (February 1989). "Worth the RISC". BYTE. McGraw-Hill. pp.?245–249. Retrieved October 8, 2024.
  21. ^ "Fujitsu SPARC". cpu-collection.de. Archived from the original on August 6, 2016. Retrieved June 30, 2019.
  22. ^ "Floodgap Retrobits presents the Solbourne Solace: a shrine to the forgotten SPARC". www.floodgap.com. Archived from the original on December 1, 2020. Retrieved January 14, 2020.
  23. ^ Sager, D.; Hinton, G.; Upton, M.; Chappell, T.; Fletcher, T.D.; Samaan, S.; Murray, R. (2001). "A 0.18 μm CMOS IA32 microprocessor with a 4 GHZ integer execution unit". 2001 IEEE International Solid-State Circuits Conference. Digest of Technical Papers. ISSCC (Cat. No.01CH37177). San Francisco, CA, USA: IEEE. pp.?324–325. doi:10.1109/ISSCC.2001.912658. ISBN?978-0-7803-6608-4.
  24. ^ FX1 Key Features & Specifications (PDF), Fujitsu, February 19, 2008, archived (PDF) from the original on January 18, 2012, retrieved December 6, 2011
  25. ^ Tremblay, Marc; Chaudhry, Shailender (February 19, 2008), "A Third-Generation 65nm 16-Core 32-Thread Plus 32-Scout-Thread CMT SPARC(R) Processor" (PDF), OpenSPARC, Sun Microsystems, archived from the original on January 16, 2013, retrieved December 6, 2011
  26. ^ Vance, Ashlee (June 15, 2009), "Sun Is Said to Cancel Big Chip Project", The New York Times, archived from the original on November 4, 2011, retrieved May 23, 2010
  27. ^ "Fujitsu shows off SPARC64 VII", heise online, August 28, 2008, archived from the original on May 23, 2013, retrieved December 6, 2011
  28. ^ Barak, Sylvie (May 14, 2009), "Fujitsu unveils world's fastest CPU", The Inquirer, archived from the original on May 17, 2009, retrieved December 6, 2011
  29. ^ "Sparc T3 processor" (PDF), Oracle Corporation, archived (PDF) from the original on April 24, 2016, retrieved December 6, 2011
  30. ^ Morgan, Timothy Prickett (December 3, 2010), "Ellison: Sparc T4 due next year", The Register, archived from the original on March 7, 2012, retrieved December 6, 2011
  31. ^ "SPARC Enterprise M-series Servers Architecture" (PDF), Fujitsu, April 2011, archived (PDF) from the original on March 4, 2016, retrieved November 5, 2011
  32. ^ Morgan, Timothy Prickett (August 22, 2011), "Oracle's Sparc T4 chip", The Register, archived from the original on November 30, 2011, retrieved December 6, 2011
  33. ^ Morgan, Timothy Prickett (November 21, 2011), "Fujitsu parades 16-core Sparc64 super stunner", The Register, archived from the original on November 24, 2011, retrieved December 8, 2011
  34. ^ "Fujitsu Launches PRIMEHPC FX10 Supercomputer", Fujitsu, November 7, 2011, archived from the original on January 18, 2012, retrieved February 3, 2012
  35. ^ "Ixfx Download" (PDF). fujitsu.com. Archived (PDF) from the original on May 18, 2015. Retrieved May 17, 2015.
  36. ^ "Images of SPARC64" (PDF). fujitsu.com. Archived (PDF) from the original on April 22, 2016. Retrieved August 29, 2017.
  37. ^ "Oracle Products" (PDF). oracle.com. Archived (PDF) from the original on March 8, 2017. Retrieved August 29, 2017.
  38. ^ "Oracle SPARC products" (PDF). oracle.com. Archived (PDF) from the original on September 26, 2018. Retrieved August 29, 2017.
  39. ^ "Fujitsu Presentation pdf" (PDF). fujitsu.com. Archived (PDF) from the original on April 22, 2016. Retrieved August 29, 2017.
  40. ^ "Fujitsu Global Images" (PDF). fujitsu.com. Archived from the original (PDF) on May 18, 2015. Retrieved August 29, 2017.
  41. ^ "M7: Next Generation SPARC. Hotchips 26" (PDF). swisdev.oracle.com. Archived (PDF) from the original on October 31, 2014. Retrieved August 12, 2014.
  42. ^ "Oracle's SPARC T7 and SPARC M7 Server Architecture" (PDF). oracle.com. Archived (PDF) from the original on November 6, 2015. Retrieved October 10, 2015.
  43. ^ Vinaik, Basant; Puri, Rahoul (August 24, 2015). "Hot Chips – August 23–25, 2015 – Conf. Day1 – Oracle's Sonoma Processor: Advanced low-cost SPARC processor for enterprise workloads" (PDF). hotchips.org. Archived (PDF) from the original on October 9, 2022. Retrieved January 25, 2022.
  44. ^ "Blueprints revealed: Oracle crams Sparc M7 and InfiniBand into cheaper 'Sonoma' chips". theregister.co.uk. Archived from the original on August 29, 2017. Retrieved August 29, 2017.
  45. ^ "Documents at Fujitsu" (PDF). fujitsu.com. Archived (PDF) from the original on August 29, 2017. Retrieved August 29, 2017.
  46. ^ "Oracle's New SPARC Systems Deliver 2-7x Better Performance, Security Capabilities, and Efficiency than Intel-based Systems". oracle.com. Archived from the original on September 18, 2017. Retrieved September 18, 2017.
  47. ^ "SPARC M8 Processor" (PDF). oracle.com. Archived (PDF) from the original on February 28, 2019. Retrieved September 18, 2017.
  48. ^ McLaughlin, John (July 7, 1993), "Intergraph to Port Windows NT to SPARC", The Florida SunFlash, 55 (11), archived from the original on July 23, 2014, retrieved December 6, 2011
  49. ^ Project: Linux for SPARC - oss.oracle.com, October 12, 2015, archived from the original on December 8, 2015, retrieved December 4, 2015
  50. ^ "TOP500 List (1-100)", TOP500, June 2011, archived from the original on June 23, 2011, retrieved December 6, 2011
  51. ^ "The Green500 List", Green500, June 2011, archived from the original on July 3, 2011
  52. ^ "Top500 List – November 2012 | TOP500 Supercomputer Sites", TOP500, November 2012, archived from the original on November 13, 2012, retrieved January 8, 2013
  53. ^ "The Green500 List – November 2012 | The Green500", Green500, November 2012, archived from the original on June 6, 2016, retrieved January 8, 2013
  54. ^ "Tianhe-2 (MilkyWay-2)", TOP500, May 2015, archived from the original on May 26, 2015, retrieved May 27, 2015
  55. ^ Keane, Andy, "Tesla Supercomputing" (mp4), Nvidia, archived from the original on February 25, 2021, retrieved December 6, 2011
  56. ^ Thibodeau, Patrick (November 4, 2010). "U.S. says China building 'entirely indigenous' supercomputer". Computerworld. Archived from the original on October 11, 2012. Retrieved August 28, 2017.
edit
怀孕什么时候开始孕吐 魂不守舍什么意思 2pcs是什么意思 桂枝茯苓丸主治什么病 经期洗澡有什么影响
厉兵秣马什么意思 人体最大的免疫器官是什么 mA是什么 什么是功 肾虚吃什么食物
五更是什么生肖 疱疹挂号挂什么科室 不止是什么意思 4.28什么星座 梦见下雪是什么征兆
梦见黑色的蛇是什么意思 店长的工作职责是什么 唱反调是什么意思 paba是什么药 6月13号是什么星座
gv是什么意思hcv9jop3ns7r.cn 经常低血糖是什么原因hcv9jop7ns4r.cn 中叶是什么意思hcv9jop7ns2r.cn 宝宝大便有泡沫是什么原因hcv8jop1ns5r.cn 螃蟹吃什么食物hcv8jop7ns5r.cn
喝黑芝麻糊有什么好处hcv9jop0ns6r.cn 天哭星是什么意思hcv8jop7ns4r.cn 12月3号是什么星座hcv8jop9ns0r.cn 嘴酸是什么原因引起hcv8jop3ns2r.cn 出虚汗是什么原因引起的怎么调理hcv9jop0ns7r.cn
太妃糖为什么叫太妃糖hcv9jop2ns3r.cn 娥皇女英是什么意思hcv7jop9ns2r.cn 龙须菜是什么植物weuuu.com 先兆性流产有什么症状hcv8jop1ns9r.cn 明年属相是什么生肖hcv9jop3ns4r.cn
lauren是什么意思hcv9jop3ns5r.cn 1月24日什么星座hcv7jop6ns2r.cn 缺钾有什么症状hcv9jop7ns0r.cn amh是什么mmeoe.com 大爷是什么意思hcv8jop4ns7r.cn
百度