📄 cpu.vhd
字号:
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;
PACKAGE bit32 IS
TYPE tw32 IS ARRAY (31 DOWNTO 0) OF std_logic;
END bit32;
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;
USE WORK.bit32.ALL;
ENTITY cpu IS
PORT (clk,interrupt : IN std_logic;
addr : OUT tw32;
data : INOUT tw32);
END cpu;
ARCHITECTURE cpu_blk OF cpu IS
SIGNAL addr_bus,data_bus : tw32;
BEGIN
ALU: BLOCK
SIGNAL ad_bus : tw32;
BEGIN
…
END BLOCK ALU;
REG8:BLOCK
SIGNAL bidir_bus : tw32;
BEGIN
REG1: BLOCK
SIGNAL ad_bus : tw32;
BEGIN
…
END BLOCK REG1;
…
REG7: BLOCK
SIGNAL ad_bus : tw32;
BEGIN
…
END BLOCK REG7;
END BLOCK REG8;
…
END cpu_blk;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -