ArticleslgStudy

science

PicoBlaze

PicoBlaze 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 PicoBlaze rather than just read about it. In short: PicoBlaze is the designation of a series of three free soft processor cores from Xilinx for use in their FPGA and CPLD products. They are based on an 8-bit RISC architecture and can reach speeds up to 100 MIPS on the Virtex 4 FPGA's family.

Key takeaways

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

Reference excerpt

PicoBlaze is the designation of a series of three free soft processor cores from Xilinx for use in their FPGA and CPLD products. They are based on an 8-bit RISC architecture and can reach speeds up to 100 MIPS on the Virtex 4 FPGA's family. The processors have an 8-bit address and data port for access to a wide range of peripherals. The license of the cores allows their free use, albeit only on Xilinx devices, and they come with development tools. Third-party tools are available from Mediatronix and others. Also PacoBlaze, a behavioral and device independent implementation of the cores exists and is released under the BSD License. The PauloBlaze is an open source VHDL implementation under the Apache License. The PicoBlaze design was originally named KCPSM which stands for "Constant(K) Coded Programmable State Machine" (formerly "Ken Chapman's PSM"). Ken Chapman was the Xilinx systems designer who devised and implemented the microcontroller.

Instantiation When instantiating a PicoBlaze microprocessor in VHDL, the respective KCPSM component name must be used. For example, for a PicoBlaze3 processor:

Performance All instructions execute in two clock cycles, making performance of the core instruction set deterministic. Interrupt response is not more than five clock cycles. As a resource optimization, it is possible for two PicoBlaze cores to share the same 1k x 18 instruction PROM, taking advantage of the dual-ported implementation of this block on Xilinx FPGAs.

Architectural notes Xilinx documents the PicoBlaze as requiring just 96 FPGA slices. The small implementation size is achieved in part through a fairly rigid separation of the instruction sequencing side (program counter, call-return stack, implied stack pointer, and interrupt enable bit) from the execution side (ALU, register file, scratchpad RAM, Z/C status bits). The only information which flows from the compute side to the sequencing side are the zero and carry ALU status bits, when tested by the conditional JUMP and CALL instructions. It is not possible to implement computed jumps or function pointers. The only information which flows from the sequencing side to the execution side are operand fields: destination register (4 bits), ALU opcode (six bits), optional source register (4 bits), optional 8-bit immediate value/port-address, optional 6-bit scratchpad address. There is no mechanism to inspect the value of the stack pointer, the contents of the 31-entry stack, the interrupt enable bit, or the contents of program memory. The instruction sequencing side does not contain an adder, so relative branches and position independent code are not possible. All jump and call addresses are absolute. The PicoBlaze is poorly suited to programming in compiled languages such as C. In addition to the lack of support for function pointers, there are no instructions or addressing modes to expedite a stack-based calling convention. For PicoBlaze it takes two instructions to implement PUSH or POP and two instructions to implement relative addressing off a software-designated stack pointer. The PicoBlaze is better suited to a hand-optimized register-based calling convention. This does not preclude the use of a Forth-like data stack, and in fact the PicoBlaze is well suited to this approach, if the 64-byte scratchpad memory offers sufficient space. PicoBlaze assembly language is a little difficult to parse using a simple recursive descent parser because the tokens enable and disable can be both mnemonics and the modifiers of the mnemonic returni (which returns from an interrupt handler into a main program and optionally sets the interrupt-enabled flag).

See also MicroBlaze

External links Processor and derivatives:

PicoBlaze on the Xilinx website PicoBlaze user manual PicoBlaze user resources Implementation of picoblaze in LabVIEW FPGA on the Xilinx Spartan 3E Starter board PacoBlaze: an open source synthesizable and behavioral Verilog clone of PicoBlaze PacoBlaze implementation description NanoBlaze: a VHDL model with generics to define various sizes Archived 2016-10-31 at the Wayback Machine PauloBlaze: an open source VHDL model fully compatible with the ISA of the kcpsm6 Tools:

Open source Picoblaze assembler PicoBlaze Debugger, Software and RTL Hardware development with ModelSim MDS, Professional IDE for Linux and Windows FIDEx, an assembler IDE for Linux, MAC and Windows pBlazASM, an open source assembler and simulator for Windows pBlazIDE, an assembler IDE for Windows kpicosim, an open source assembler IDE for Linux Opbasm, Cross-platform Open Picoblaze macro assembler for kcpsm3 and kcpsm6 PicoBlaze Simulator in JavaScript

References Notes

Bibliography Ivanov Vl. Using a PicoBlaze Processor to Traffic Light Control. Archived 2020-08-06 at the Wayback Machine Cybernetics and Information Technologies, 15, 5, Marin Drinov, 2015, Online ISSN 1314-4081, doi:10.1515/cait-2015-0023, pp. 131 – 139. SJR:0.212

Worked examples

Example 1 — a first encounter with PicoBlaze

Start with the simplest possible case. Write down what PicoBlaze 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 PicoBlaze 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 PicoBlaze 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 PicoBlaze

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

How to study PicoBlaze in 20 minutes

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

Frequently asked questions

What is PicoBlaze in simple terms?

PicoBlaze is the designation of a series of three free soft processor cores from Xilinx for use in their FPGA and CPLD products. They are based on an 8-bit RISC architecture and can reach speeds up to 100 MIPS on the Virtex 4 FPGA's family.

Why does PicoBlaze 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 PicoBlaze?

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

Tags

  • Soft microprocessors

Keep exploring