procmem_definitions.vhd
来自「It is the code for implementing the proj」· VHDL 代码 · 共 20 行
VHD
20 行
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 + =
减小字号Ctrl + -
显示快捷键?