马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
subtype ROM_WORD is std_logic_vector (31 downto 0);
type ROM_TABLE is array (0 to 15) of ROM_WORD;
constant Zero_32 :ROM_WORD := "00000000000000000000000000000000";
constant RomWord13 :ROM_WORD := "000000000000000000000000"& CAP_PTR;
constant RomWord15 :ROM_WORD := MAX_LAT & MIN_GNT & INT_PIN &INT_LINE;
constant ROM: ROM_TABLE := ROM_TABLE'(
ROM_WORD'(DEVICE_ID & VENDOR_ID),
ROM_WORD'(Zero_32),
ROM_WORD'(CLASS_ID & REV_ID),
ROM_WORD'(Zero_32),
ROM_WORD'(BAR0_MAP),
ROM_WORD'(BAR1_MAP),
ROM_WORD'(BAR2_MAP),
ROM_WORD'(BAR3_MAP),
ROM_WORD'(BAR4_MAP),
ROM_WORD'(BAR5_MAP),
ROM_WORD'(Zero_32),
ROM_WORD'(SUBDEVICE_ID & SUBVENDOR_ID,
ROM_WORD'(EBAR_MAP),
ROM_WORD'(RomWord13),
ROM_WORD'(Zero_32),
ROM_WORD'(MAX_LAT & MIN_GNT & INT_PIN &INT_LINE));
以上是VHDL写的,32位宽,深度16的ROM,并赋值。verilog中怎么写?? 多谢!!! |