Sự cố quan trọng
Vấn đề này ảnh hưởng đến các sản phẩm DDR3.
Nếu bạn chỉ định một giá trị không-0 cho bất kỳ trường RC8-RC15 nào trong từ điều khiển DDR3 RDIMM, tạo IP không thành công với các từ sau Lỗi:
Error: integer value too large to represent.
Giải pháp khắc phục sự cố này là sửa đổi mã trong tệp uniphy_gen.tcl
.
Thực hiện theo các bước sau:
- Trong thư mục
ip/altera/alt_mem_if/alt_mem_if_tcl_packages/gen/�
, mở tệp tronguniphy_gen.tcl
trình chỉnh sửa. - Trong tệp
uniphy_gen.tcl
, tìm kiếm bình luận văn bản sau:
# Need to split the 64-bit RDIMM configuration word into
2 32-bit words for the sake of C-code�
- Tại vị trí nhận xét văn bản, thay thế các thông tin sau mã hiện có:
if {([string compare -nocase "DDR3"] == 0)
&& } {
# Need to split the 64-bit RDIMM configuration word into 2 32-bit words
for the sake of C-code
set rdimm_config_dec [ expr 0x[get_parameter_value RDIMM_CONFIG]
]
set rdimm_config_high [ format "0x%X" [ expr >>
32 ] ]
set rdimm_config_low [ format "0x%X" [ expr & 0xFFFFFFFF
] ]
append sw_macros " -DRDIMM_CONFIG_WORD_LOW="
append sw_macros " -DRDIMM_CONFIG_WORD_HIGH="
}
với mã mới sau:
if {([string compare -nocase "DDR3"] == 0)
&& } {
# Need to split the 64-bit RDIMM configuration word into 2 32-bit words
for the sake of C-code
set rdimm_config_str [ get_parameter_value RDIMM_CONFIG ]
set rdimm_config_low "0x[ string range end-7 end
]"
# Handle two halves of 16-byte string independently
if {([string length ] > 8)} {
set rdimm_config_high "0x[ string range end-15
end-8 ]"
} else {
set rdimm_config_high "0x0"
}
append sw_macros " -DRDIMM_CONFIG_WORD_LOW="
append sw_macros " -DRDIMM_CONFIG_WORD_HIGH="
}
Vấn đề này sẽ được khắc phục trong một phiên bản trong tương lai.