sofware/memtest: update bandwidth registers
This commit is contained in:
parent
ff11cb97a9
commit
69e9032d49
|
@ -17,9 +17,9 @@ static void membw_service(void)
|
||||||
unsigned int rdb, wrb;
|
unsigned int rdb, wrb;
|
||||||
|
|
||||||
if(elapsed(&last_event, identifier_frequency_read())) {
|
if(elapsed(&last_event, identifier_frequency_read())) {
|
||||||
lasmicon_bandwidth_update_write(1);
|
sdram_controller_bandwidth_update_write(1);
|
||||||
nr = lasmicon_bandwidth_nreads_read();
|
nr = sdram_controller_bandwidth_nreads_read();
|
||||||
nw = lasmicon_bandwidth_nwrites_read();
|
nw = sdram_controller_bandwidth_nwrites_read();
|
||||||
f = identifier_frequency_read();
|
f = identifier_frequency_read();
|
||||||
rdb = (nr*f >> (24 - 7))/1000000ULL;
|
rdb = (nr*f >> (24 - 7))/1000000ULL;
|
||||||
wrb = (nw*f >> (24 - 7))/1000000ULL;
|
wrb = (nw*f >> (24 - 7))/1000000ULL;
|
||||||
|
|
Loading…
Reference in New Issue