def_instructioncachecontroller.v
来自「若干VHDL语言的源代码」· Verilog 代码 · 共 21 行
V
21 行
//total instruction cache size in byte
`define InstructionCacheTotalSizeInByte 4096
`define InstructionCacheTotalSizeInWord `InstructionCacheTotalSizeInByte/`ByteNumberInWord
//how many word in a line and how to select out
`define InstructionCacheWordNumberInLine 4
`define InstructionCacheWordSelectBit 3:2
//how many section
`define InstructionSectionNumber 4
`define InstructionSectionSelectBits 5:4
//how many line in a section
`define InstructionCacheLineNumberInSection (`InstructionCacheTotalSizeInWord/`InstructionSectionNumber)/`InstructionCacheWordNumberInLine
//how width a line
`define InstructionCacheLineWidth `WordWidth*`InstructionCacheWordNumberInLine
`define InstructionCacheLineZero 128'h0000_0000_0000_0000_0000_0000_0000_0000
`define InstructionCacheMemoryAccess_Normal 8'b00000000
`define InstructionCacheMemoryAccess_Wait 8'b00000001
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?