📄 m320c50.inc
字号:
// M320C50 Global Constants// Copyright Mentor Graphics Corporation and Licensors 1998.// // Internal memory size definition// C_PR (6 bits) defines the size of the internal program memory in units of 1K.// valid range 000000 - 100000 (0-32).// C_SR (6 bits) defines the total size of the internal single-port memory in units of 1K.// valid range 000000 - 100000 (0-32).// C_SBS (3 bits) defines the size of the individual single-port memory blocks.// valid range 001 - 110 (1-6), corresponding to block sizes:// 1K, 2K, 4K, 8K, 16K & 32K respectively.// C_NOSB (integer) defines the number of internal single-port memory blocks.// Maximum value is 16.// This value should be: total size / individual block size (rounded up to// the next integer if the result is fractional)//// Note:// The single-port memory can comprise a maximum of 16 individual memory blocks.// Therefore if the total single-port memory is more than 16K then the individual// blocks must be at least 2K in size.//// The single-port memory appears in the program space memory map above the// internal program memory, with its start address determined by C_PR.//// C_PR = 000010 : Program memory = 2k// C_SR = 001001 : SARAM total size = 9k// C_SBS = 010 : SARAM block size = 2k// C_NOSB = 5 : 4 blocks of 2K + 1 block of 1K`define C_PR 6'b000010`define C_SR 6'b001001`define C_SBS 3'b010`define C_NOSB 5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -