Main Menu

Implement Program Counter Vhdl Xilinx

понедельник 09 марта admin 45

Flight

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 4FPGA'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. Download software how to program a griffon self learning remote. The PauloBlaze is an open source VHDL implementation under the Apache License.

Designing a CPU in VHDL, Part 6: Program Counter, Instruction Fetch, Branching. And learning undertaken to design and implement a CPU in VHDL. We get back into the Xilinx ISE project, adding out new pcunit.vhd.

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.[1]

Instantiation[edit]

When instantiating a PicoBlaze microcontroller in VHDL, the respective KCPSM component name must be used.[2] For example, for a PicoBlaze3 processor:

Performance[edit]

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[edit]

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.[3] 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.

See also[edit]

External links[edit]

Processor and derivatives:

  • PicoBlaze on the Xilinx website[permanent dead link]

Tools:

  • pBlazASM, an open source assembler and simulator for Windows[permanent dead link]

References[edit]

Notes
  1. ^'PicoBlaze 8-bit Microcontroller'(PDF). Xilinx, Inc. Retrieved 2007-06-25.
  2. ^'PicoBlaze 8-bit Embedded Microcontroller User Guide'(PDF). Xilinx, Inc. Archived from the original(PDF) on 2007-09-27. Retrieved 2007-06-25.
  3. ^Pong P. Chu (2008). FPGA Prototyping by VHDL Examples: Xilinx Spartan-3 Version. Wiley & Sons. ISBN978-0-470-18531-5.
Bibliography
Vhdl code for asynchronous counter
  • Ivanov Vl. Using a PicoBlaze Processor to Traffic Light Control. Cybernetics and Information Technologies, 15, 5, Marin Drinov, 2015, Online ISSN1314-4081, doi:10.1515/cait-2015-0023, pp. 131 – 139. SJR:0.212
Retrieved from 'https://en.wikipedia.org/w/index.php?title=PicoBlaze&oldid=933965129'