ArticleslgStudy

computer science

CompactRISC

CompactRISC is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand CompactRISC rather than just read about it. In short: CompactRISC is a family of instruction set architectures from National Semiconductor. The architectures are designed according to reduced instruction set computing principles, and are mainly used in microcontrollers.

Key takeaways

  • CompactRISC belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect CompactRISC to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CompactRISC from memory before moving on to harder problems.

Reference excerpt

CompactRISC is a family of instruction set architectures from National Semiconductor. The architectures are designed according to reduced instruction set computing principles, and are mainly used in microcontrollers. The subarchitectures of this family are the 16-bit CR16 and CR16C and the 32-bit CRX.

Architectures Features of CR16 family: compact implementations (less than 1 mm2 with 250 nm), addressing of 2 MB (221), frequencies up to 66 MHz, hardware multiplier for 16-bit integers. It has complex instructions such as bit manipulation, saving/restoring and push/pop of several registers with single command. CR16 has 16 general purpose registers of 16 bits, and address registers of 21 bits wide. There are 8 special registers: program counter, interrupt stack pointer ISP, interrupt vector address register INTBASE, status register PSR, configuration register and 3 debug registers. Status register implements flags: C, T, L, F, Z, N, E, P, I. Instructions are encoded in two-address form in several formats, usually they have 16-bit encoding, but there are two formats for medium immediate instructions with length of 32-bit. Typical opcode length is 4 bits (bits 9–12 of most encoding types. Basic encoding formats are:

Register-to-register, Short 5-bit immediate value to register, Medium immediate of 16-bit value to register (32-bit encoding), Load/store relative with short 5-bit displacement (2-bit opcode), Load/store relative with medium 18-bit displacement (32-bit encoding, 2-bit opcode). CR16C comes with a different opcode encoding format, has 23–32-bit-wide address registers and provides two 32-bit general purpose registers. CR16 implements traps and interrupts. Implementations of CR16 has three-stage pipeline: fetch, decode, execute.

CR16 products CR16 was used in several National Semiconductor microcontrollers, and since 2001 integrated microcontrollers were available having built-in flash memory. Since 2007 CR16-based IP was available to licensing

References

External links National Semiconductor Embedded Microcontrollers (CR16 and COP8) CompactRISC Core Architecture page on National Semiconductor website (archived copy from 2007) CR16B Programmer’s Reference Manual, National Semiconductor, 1997 GCC CR16 port

Worked examples

Example 1 — a first encounter with CompactRISC

Start with the simplest possible case. Write down what CompactRISC claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to CompactRISC before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about CompactRISC ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of CompactRISC

In research
CompactRISC appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses CompactRISC in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
CompactRISC is common in secondary-school and first-year university syllabi. It links to neighbouring topics Microcomputer stubs, Microcontrollers, National Semiconductor microprocessors, so understanding it makes those chapters shorter.
In everyday life
Look for CompactRISC outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “CompactRISC” →

How to study CompactRISC in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CompactRISC means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain CompactRISC out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CompactRISC in simple terms?

CompactRISC is a family of instruction set architectures from National Semiconductor. The architectures are designed according to reduced instruction set computing principles, and are mainly used in microcontrollers.

Why does CompactRISC matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study CompactRISC?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on CompactRISC.

Tags

  • Microcomputer stubs
  • Microcontrollers
  • National Semiconductor microprocessors

Keep exploring