or1200处理器的数据处理类指令说明

本文详细介绍了OR1200处理器的数据处理类指令,包括比较、移位、逻辑运算、算术运算及数据传送等,提供助记符解析帮助理解。通过对指令的分类和解释,便于掌握OR1200软核处理器的使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

以下内容摘自《步步惊芯——软核处理器内部设计分析》一书


      在笔者的分类中,数据处理类指令有48条。表4.1给出了OR1200中实现的所有算术处理类指令及其说明。




      笔者将OR1200的数据处理类指令再细分为如下类别:

  •   比较指令

l.sfeq、l.sfeqi、l.sfges、l.sfgesi、l.sfgeu、l.sfgeui、l.sfgts、l.sfgtsi、l.sfgtu、l.sfgtui、l.sfleu、l.sfleui、l.sfles、l.sflesi、l.sflts、l.sfltsi、l.sfltu、l.sfltui、l.sfne、l.sfnei

  •   移位指令

l.rori、l.sll、l.slli、l.sra、l.srai、l.srl、l.srli

  •   逻辑运算指令

l.and、l.andi、l.or、l.ori、l.xor、l.xori

  •   算术运算指令

l.

开源处理器源代码,学习优秀的代码编写 ////////////////////////////////////////////////////////////////////// //// //// //// OR1200's ALU //// //// //// //// This file is part of the OpenRISC 1200 project //// //// http://www.opencores.org/cores/or1k/ //// //// //// //// Description //// //// ALU //// //// //// //// To Do: //// //// - make it smaller and faster //// //// //// //// Author(s): //// //// - Damjan Lampret, lampret@opencores.org //// //// //// ////////////////////////////////////////////////////////////////////// //// //// //// Copyright (C) 2000 Authors and OPENCORES.ORG //// //// //// //// This source file may be used and distributed without //// //// restriction provided that this copyright statement is not //// //// removed from the file and that any derivative work contains //// //// the original copyright notice and the associated disclaimer. //// //// //// //// This source file is free software; you can redistribute it //// //// and/or modify it under the terms of the GNU Lesser General //// //// Public License as published by the Free Software Foundation; //// //// either version 2.1 of the License, or (at your option) any //// //// later version. //// //// //// //// This source is distributed in the hope that it will be //// //// useful, but WITHOUT ANY WARRANTY; without even the implied //// //// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //// //// PURPOSE. See the GNU Lesser General Public License for more //// //// details. //// //// //// //// You should have received a copy of the GNU Lesser General //// //// Public License along with this source; if not, download it //// //// from http://www.opencores.org/lgpl.shtml //// //// //// //////////////////////////////////////////////////////////////////////
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值