📄 procmem_definitions.vhd
字号:
LIBRARY IEEE;USE IEEE.std_logic_1164.ALL;USE IEEE.numeric_std.ALL;PACKAGE ProcMem_definitions IS-- globalsCONSTANT width : NATURAL := 32;-- definitions for regfileCONSTANT regfile_depth : positive := 32; -- register file depth = 2**adrsizeCONSTANT regfile_adrsize : positive := 5; -- address vector size = log2(depth)-- definitions for memoryCONSTANT ram_adrwidth : positive := 8; -- m x n - RAM BlockCONSTANT ram_datwidth : positive := 8;-- initial RAM content in IntelHEX FormatCONSTANT ramfile_std : string := "./simulation/ram_256x8.hex";CONSTANT ramfile_block0 : string := "./simulation/ram0_256x8.hex";CONSTANT ramfile_block1 : string := "./simulation/ram1_256x8.hex";CONSTANT ramfile_block2 : string := "./simulation/ram2_256x8.hex";CONSTANT ramfile_block3 : string := "./simulation/ram3_256x8.hex";END ProcMem_definitions;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -