TSK3000A - Generic Instructions

Similar documents
MIPS Instruction Format

MIPS Assembly Language

The MIPS R2000 Instruction Set

Adventures in Assembly Land

Kernel Registers 0 1. Global Data Pointer. Stack Pointer. Frame Pointer. Return Address.

MIPS Reference Guide

MIPS Instruction Reference

SPIM Instruction Set

ECE 2035 Programming HW/SW Systems Fall problems, 7 pages Exam Two 23 October 2013

The MIPS Instruction Set Architecture

F. Appendix 6 MIPS Instruction Reference

MIPS Instruction Set

Q1: /30 Q2: /25 Q3: /45. Total: /100

Question 0. Do not turn this page until you have received the signal to start. (Please fill out the identification section above) Good Luck!

ECE 2035 Programming HW/SW Systems Spring problems, 6 pages Exam One 4 February Your Name (please print clearly)

Computer Architecture. The Language of the Machine

CSc 256 Midterm 2 Spring 2012

Computer Architecture. MIPS Instruction Set Architecture

Week 10: Assembly Programming

Reduced Instruction Set Computer (RISC)

EEM 486: Computer Architecture. Lecture 2. MIPS Instruction Set Architecture

CSc 256 Midterm 2 Fall 2011

ECE 2035 Programming HW/SW Systems Fall problems, 6 pages Exam One 22 September Your Name (please print clearly) Signed.

Mark Redekopp, All rights reserved. EE 357 Unit 11 MIPS ISA

MIPS ISA. 1. Data and Address Size 8-, 16-, 32-, 64-bit 2. Which instructions does the processor support

CSc 256 Midterm (green) Fall 2018

ECE 2035 Programming HW/SW Systems Spring problems, 6 pages Exam Two 11 March Your Name (please print) total

ECE 2035 Programming HW/SW Systems Fall problems, 6 pages Exam One 19 September 2012

Reduced Instruction Set Computer (RISC)

ECE 2035 Programming HW/SW Systems Fall problems, 6 pages Exam Two 23 October Your Name (please print clearly) Signed.

M2 Instruction Set Architecture

RISC-V Assembly and Binary Notation

CS 61c: Great Ideas in Computer Architecture

ECE 2035 Programming HW/SW Systems Fall problems, 6 pages Exam Two 21 October 2016

101 Assembly. ENGR 3410 Computer Architecture Mark L. Chang Fall 2009

ECE Exam I February 19 th, :00 pm 4:25pm

ENCM 369 Winter 2013: Reference Material for Midterm #2 page 1 of 5

CISC 662 Graduate Computer Architecture. Lecture 4 - ISA

CPS311 - COMPUTER ORGANIZATION. A bit of history

CISC 662 Graduate Computer Architecture. Lecture 4 - ISA MIPS ISA. In a CPU. (vonneumann) Processor Organization

Assembly Programming

Examples of branch instructions

MIPS Assembly Language. Today s Lecture

Midterm. Sticker winners: if you got >= 50 / 67

Today s Lecture. MIPS Assembly Language. Review: What Must be Specified? Review: A Program. Review: MIPS Instruction Formats

CSc 256 Final Fall 2016

Flow of Control -- Conditional branch instructions

ece4750-parc-isa.txt

ISA and RISCV. CASS 2018 Lavanya Ramapantulu

Introduction to MIPS Processor

EE 109 Unit 8 MIPS Instruction Set

Assembly Language. Prof. Dr. Antônio Augusto Fröhlich. Sep 2006

SpartanMC. SpartanMC. Instruction Set Architecture

Arithmetic for Computers

Mark Redekopp, All rights reserved. EE 352 Unit 3 MIPS ISA

EE 109 Unit 13 MIPS Instruction Set. Instruction Set Architecture (ISA) Components of an ISA INSTRUCTION SET OVERVIEW

ECE 2035 A Programming Hw/Sw Systems Fall problems, 8 pages Final Exam 8 December 2014

ECE 2035 Programming HW/SW Systems Spring problems, 6 pages Exam Three 10 April 2013

EE108B Lecture 3. MIPS Assembly Language II

ISA: The Hardware Software Interface

Overview. Introduction to the MIPS ISA. MIPS ISA Overview. Overview (2)

Project Part A: Single Cycle Processor

MIPS Assembly Language Programming

Lecture 2. Instructions: Language of the Computer (Chapter 2 of the textbook)

Outline. EEL-4713 Computer Architecture Multipliers and shifters. Deriving requirements of ALU. MIPS arithmetic instructions

ECE 2035 A Programming Hw/Sw Systems Spring problems, 8 pages Final Exam 29 April 2015

ECE 2035 Programming Hw/Sw Systems Fall problems, 10 pages Final Exam 9 December 2013

ECE232: Hardware Organization and Design. Computer Organization - Previously covered

Programming the processor

software hardware Which is easier to change/design???

A Processor. Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University. See: P&H Chapter , 4.1-3

ECE 2035 A Programming Hw/Sw Systems Fall problems, 8 pages Final Exam 9 December 2015

ece4750-tinyrv-isa.txt

INSTRUCTION SET COMPARISONS

Instruction Set Architecture of. MIPS Processor. MIPS Processor. MIPS Registers (continued) MIPS Registers

ECE260: Fundamentals of Computer Engineering

ECE 2035 A Programming Hw/Sw Systems Fall problems, 10 pages Final Exam 14 December 2016

CS 4200/5200 Computer Architecture I

SPIM S20: A MIPS R2000 Simulator

Course Administration

Mips Code Examples Peter Rounce

Exam in Computer Engineering

ECE260: Fundamentals of Computer Engineering

CS3350B Computer Architecture MIPS Instruction Representation

MIPS%Assembly% E155%

CS61CL Machine Structures. Lec 5 Instruction Set Architecture

ECE 15B Computer Organization Spring 2010

Programmable Machines

Concocting an Instruction Set

Computer Architecture

Computer Architecture Experiment

MIPS ISA and MIPS Assembly. CS301 Prof. Szajda

Design for a simplified DLX (SDLX) processor Rajat Moona

A General-Purpose Computer The von Neumann Model. Concocting an Instruction Set. Meaning of an Instruction. Anatomy of an Instruction

MACHINE LANGUAGE. To work with the machine, we need a translator.

Reminder: tutorials start next week!

Programmable Machines

Review: Organization. CS152 Computer Architecture and Engineering Lecture 2. Review of MIPS ISA and Design Concepts

Computer Organization & Design

Fundamentals of Computer Systems

Transcription:

TSK3000A - Generic Instructions Frozen Content Modified by Admin on Sep 13, 2017 Using the core set of assembly language instructions for the TSK3000A as building blocks, a number of generic instructions (also referred to as pseudo instructions or macros) are defined and supported by the Assembler for the TSK3000A. Each of these generic instructions, as listed in Table 1, translate into one or more separate assembly language instructions (from the core set) in order to fulfill their task. Note: In Table 1 the following operands are used: ra register index of source operand A rb register index of source operand B rc register index of destination IMM5 5-bit immediate value IMM16 16-bit immediate value IMM32 32-bit immediate value target absolute offset or symbolic address label (ra) address specified by contents of a base register (GPR ra) target(ra) based address (can also be represented as offset(base)). The target address is added to the contents of the base register (GPR ra) to obtain the actual address. Table 1. Generic Instructions. Mnemonic ABS rc, ra ABS ra ADD rc, rb ADD rc, ra, IMM32 ADD rc, IMM32 ADDI rc, IMM16 ADDIU rc, IMM16 ADDU rc, rb ADDU rc, ra, IMM32 ADDU rc, IMM32 Instruction Absolute Value Add Add Immediate Add Immediate Unsigned Add Unsigned

AND rc, rb AND rc, ra, IMM32 AND rc, IMM32 ANDI rc, IMM16 B target BAL target BEQ ra, IMM32, target BEQZ ra, target BGE ra, rb, target BGE ra, IMM32, target BGEU ra, rb, target BGEU ra, IMM32, target BGT ra, rb, target BGT ra, IMM32, target BGTU ra, rb, target BGTU ra, IMM32, target BLE ra, rb, target BLE ra, IMM32, target BLEU ra, rb, target BLEU ra, IMM32, target BLT ra, rb, target BLT ra, IMM32, target BLTU ra, rb, target BLTU ra, IMM32, target BNE ra, IMM32, target BNEZ ra, target BREAK DIV ra, rb DIV ra, IMM32 DIV rc, ra, IMM32 DIVU ra, rb DIVU ra, IMM32 DIVU rc, ra, IMM32 J ra JAL ra JAL rc, target Bitwise Logical AND Bitwise Logical AND Immediate Branch Branch And Link Branch On Equal Branch On Equal To Zero Branch On Greater Than Or Equal Branch On Greater Than Or Equal Unsigned Branch On Greater Than Branch On Greater Than Unsigned Branch On Less Than Or Equal To Branch On Less Than Or Equal To Unsigned Branch On Less Than Branch On Less Than Unsigned Branch On Not Equal Branch On Not Equal To Zero Breakpoint Divide Divide Unsigned Jump Jump And Link

JALR target JALR ra JALR rc, target JR target LA rc, target LA rc, target(ra) LI rc, IMM32 LB rc, (ra) LB rc, target LB rc, target(ra) LBU rc, (ra) LBU rc, target LBU rc, target(ra) LH rc, (ra) LH rc, target LH rc, target(ra) LHU rc, (ra) LHU rc, target LHU rc, target(ra) LW rc, (ra) LW rc, target LW rc, target(ra) MOVE rc, ra MULT ra, rb MULT ra, IMM32 MULT rc, ra, IMM32 MULTU ra, rb MULTU ra, IMM32 MULTU rc, ra, IMM32 NEG rc, ra NEG ra NEGU rc, ra NEGU ra NOP Jump And Link Register Jump Register Load Address Load Immediate Load Byte Load Byte Unsigned Load Halfword Load Halfword Unsigned Load Word Move Multiply Multiply Unsigned Negate Negate Unsigned No Operation

NOR rc, rb NOR rc, ra, IMM32 NOR rc, IMM32 NOT rc, ra NOT ra OR rc, rb OR rc, ra, IMM32 OR rc, IMM32 ORI rc, IMM16 ROL rc, ra, IMM5 ROL rc, ra, rb ROL rc, IMM5 ROL rc, rb ROR rc, ra, IMM5 ROR rc, ra, rb ROR rc, IMM5 ROR rc, rb SB rc, (ra) SB rc, target SB rc, target(ra) SEQ rc, ra, rb SEQ rc, ra, IMM32 SGE rc, ra, rb SGE rc, ra, IMM32 SGEU rc, ra, rb SGEU rc, ra, IMM32 SGT rc, ra, rb SGT rc, ra, IMM32 SGTU rc, ra, rb SGTU rc, ra, IMM32 SH rc, (ra) SH rc, target SH rc, target(ra) Bitwise Logical NOR Bitwise Logical NOT Bitwise Logical OR Bitwise Logical OR Immediate Rotate Left Rotate Right Store Byte Set On Equal To Set On Greater Than Or Equal To Set On Greater Than Or Equal To Unsigned Set On Greater Than Set On greater Than Unsigned Store Halfword

SLA rc, ra, IMM5 SLA rc, ra, rb SLA rc, IMM5 SLA rc, rb SLAV rc, ra, rb SLAV rc, rb SLE rc, ra, rb SLE rc, ra, IMM32 SLEU rc, ra, rb SLEU rc, ra, IMM32 SLL rc, ra, rb SLL rc, IMM5 SLL rc, rb SLLV rc, rb SLT rc, rb SLT rc, ra, IMM32 SLT rc, IMM32 SLTI rc, IMM16 SLTU rc, rb SLTU rc, ra, IMM32 SLTU rc, IMM32 SLTIU rc, IMM16 SNE rc, ra, rb SNE rc, ra, IMM32 SRA rc, ra, rb SRA rc, IMM5 SRA rc, rb SRAV rc, rb SRL rc, ra, rb SRL rc, IMM5 SRL rc, rb SRLV rc, rb SUB rc, rb SUB rc, ra, IMM32 SUB rc, IMM32 Shift Left Arithmetic Shift Left Arithmetic Variable Set On Less Than Or Equal To Set On Less Than Or Equal To Unsigned Shift Left Logical Shift Left Logical Variable Set On Less Than Set On Less Than Immediate Set On Less Than Unsigned Set On Less Than Immediate Unsigned Set On Not Equal To Shift Right Arithmetic Shift Right Arithmetic Variable Shift Right Logical Shift Right Logical Variable Subtract

SUBU rc, rb SUBU rc, ra, IMM32 SUBU rc, IMM32 SW rc, (ra) SW rc, target SW rc, target(ra) XOR rc, rb XOR rc, ra, IMM32 XOR rc, IMM32 XORI rc, IMM16 Subtract Unsigned Store Word Bitwise Logical Exclusive OR Bitwise Logical Exclusive OR Immediate Source URL: https://techdocs.altium.com/display/fpga/tsk3000a+-+generic+instructions