ArticleslgStudy

science

DLX

DLX is a 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 DLX rather than just read about it. In short: The DLX (pronounced "Deluxe") is a RISC processor architecture designed by John L. Hennessy and David A.

Key takeaways

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

Reference excerpt

The DLX (pronounced "Deluxe") is a RISC processor architecture designed by John L. Hennessy and David A. Patterson, the principal designers of the Stanford MIPS and the Berkeley RISC designs (respectively), the two benchmark examples of RISC design (named after the Berkeley design). The DLX is essentially a cleaned up (and modernized) simplified Stanford MIPS CPU. The DLX has a simple 32-bit load/store architecture, somewhat unlike the modern MIPS architecture CPU. As the DLX was intended primarily for teaching purposes, the DLX design is widely used in university-level computer architecture courses. There are two known "softcore" hardware implementations: ASPIDA and VAMP. The ASPIDA project resulted in a core with many nice features: it is open source, supports Wishbone, has an asynchronous design, supports multiple ISAs, and is ASIC proven. VAMP is a DLX-variant that was mathematically verified as part of Verisoft project. It was specified with PVS, implemented in Verilog, and runs on a Xilinx FPGA. A full stack from compiler to kernel to TCP/IP was built on it.

History In the Stanford MIPS architecture, one of the methods used to gain performance was to force all instructions to complete in one clock cycle. This forced compilers to insert "no-ops" in cases where the instruction would definitely take longer than one clock cycle. Thus input and output activities (like memory accesses) specifically forced this behaviour, leading to artificial program bloat. In general, MIPS programs were forced to have a lot of wasteful NOP instructions, a behaviour that was an unintended consequence. The DLX architecture does not force single clock cycle execution, and is therefore immune to this problem. In the DLX design, a more modern approach to handling long instructions was used: data-forwarding and instruction reordering. In this case, the longer instructions are "stalled" in their functional units, and then re-inserted into the instruction stream when they can complete. Externally, this design behaviour makes it appear as if execution had occurred linearly.

Instruction decoding DLX instructions can be broken down into three types, R-type, I-type and J-type. R-type instructions are pure register instructions, with three register references contained in the 32-bit word. I-type instructions specify two registers, and use 16 bits to hold an immediate value. Finally J-type instructions are jumps, containing a 26-bit address. Opcodes are 6 bits long, for a total of 64 possible basic instructions. To select one of 32 registers 5 bits are needed.

In the case of R-type instructions this means that only 21 bits of the 32-bit word are used, which allows the lower 6 bits to be used as "extended instructions". The DLX can support more than 64 instructions, as long as those instructions work purely on registers. This quirk is useful for things like FPU support.

Pipeline The DLX, like the MIPS design, bases its performance on the use of an instruction pipeline. In the DLX design this is a fairly simple one, "classic" RISC in concept. The pipeline contains five stages:

IF – Instruction Fetch unit/cycle IR<-Mem(PC) NPC<-PC+4 Operation: Send out the PC and fetch the instruction from memory into the Instruction Register (IR); increment the PC by 4 to address the next sequential instruction. The IR is used to hold the next instruction that will be needed on subsequent clock cycles; likewise the register NPC is used to hold the next sequential PC. ID – Instruction Decode unit Operation: Decode the instruction and access the register file to read the registers. This unit gets instruction from IF, and extracts opcode and operand from that instruction. It also retrieves register values if requested by the operation. EX – Execution unit/effective address cycle Operation: The ALU operates on the operands prepared in prior cycle, performing one of the four functions depending on the DLX instruction type. Memory Reference: Register–Register ALU instruction, Register–Immediate ALU instruction Branch MEM – Memory access unit The DLX instructions active in this unit are loads, stores and branches. Memory reference: access memory if needed. If instruction is load, data returns from memory and is placed in the LMD (load memory data) register Branch WB – WriteBack unit Typically referred to as "the store unit" in modern terminology. Write the result into the register file, whether it comes from the memory system or from the ALU.

See also Educational programming language LC-3 MIX, MMIX MicroBlaze MikroSim OpenRISC

References Sailer, Philip M.; Kaeli, David R. (1996). The DLX Instruction Set Architecture Handbook. Morgan Kaufmann. ISBN 1-55860-371-9. Patterson, David; Hennessy, John (1996). Computer Architecture: A Quantitative Approach (1st ed.). Morgan Kaufmann. ISBN 978-1-55-860329-5. Patterson, David; Hennessy, John (1994). Computer Organization and Design (1st ed.). Morgan Kaufmann. ISBN 978-1-55-860281-6.

External links The DLX Processor DLX instructions WinDLX DLX Simulator (GNU GPL) ESCAPE DLX Simulator Archived 2015-06-23 at the Wayback Machine openDLX - opensource DLX-Simulator in Java (GNU GPLv3) Formal verification of VAMP processor ASPIDA asynchronous DLX processor HERA: The Haverford Educational RISC Architecture

Worked examples

Example 1 — a first encounter with DLX

Start with the simplest possible case. Write down what DLX claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 DLX 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 DLX 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 DLX

In research
DLX appears in 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 DLX 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
DLX is common in secondary-school and first-year university syllabi. It links to neighbouring topics Instruction set architectures, Soft microprocessors, so understanding it makes those chapters shorter.
In everyday life
Look for DLX 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 “DLX” →

How to study DLX in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DLX 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 DLX out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DLX in simple terms?

The DLX (pronounced "Deluxe") is a RISC processor architecture designed by John L. Hennessy and David A.

Why does DLX matter?

Because it connects several 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 DLX?

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 DLX.

Tags

  • Instruction set architectures
  • Soft microprocessors

Keep exploring