Forum Discussion
RParks
New Contributor
7 years agoHi, so my solution wasn't for DDR3 and you'd need to customise it for your system but in mine I wrote a separate proc <ddr_read_command> which took 2 arguments, the address and length.
The below might be a helpful starting point for you to write your own:
proc memory_rd_cmd {addr length} {
variable claimed_path
set readdata {}
for {set i 0} {$i < $length} {incr i} {
lappend readdata [master_read_32 $claimed_path [expr {$addr+$i}] 1]
}
return $readdata
}