Trisc3mb:MicroBlaze架构的HDL实现与测试
1. 引言
在微处理器设计领域,MicroBlaze作为一款三地址机,具有独特的架构和应用价值。Trisc3mb是基于PicoBlaze设计的一个微小的MicroBlaze版本,接下来我们将详细探讨其HDL实现、测试以及相关的指令集架构。
2. Trisc3mb的HDL代码实现
Trisc3mb的设计从PicoBlaze的trisc2.vhd或trisc2.v开始,以下是其VHDL代码:
-- ===================================================================
-- Title: T-RISC 3 address machine
-- Description: This is the top control path/FSM of the
-- T-RISC, with a single 3 phase clock cycle design
-- It has a 3-address type instruction word
-- implementing a subset of the MicroBlaze architecture
-- ===================================================================
LIBRARY ieee; USE ieee.std_logic_1164.ALL;
PACKAGE n_bit_type IS -- User defined typ