OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [fpga/] [experiments/] [memspeed-2/] [README] - Blame information for rev 325

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 325 hellwig
Purpose
2
-------
3
 
4
This test circuit allows speed measurements of the new memory
5
controller, driving the on-board SDRAM of the XESS board. To do
6
timing measurements of reads or writes, wire the "we" signal
7
to 0 or 1, respectively. It is also possible to get a mix of
8
reads and writes if the "we" signal is a function of (some bits
9
of) the counter "count". Note that only 64-bit accesses are
10
performed. The clock rate is 100 MHz.
11
 
12
 
13
Read
14
----
15
 
16
20.5 s
17
20.6 s
18
20.7 s
19
 
20
average:
21
20.6 s / 2^27 read cycles = 153.5 ns / read cycle
22
which means 15.35 clock cyles per read
23
(the corresponding data rate is 52.1 MB/s)
24
 
25
 
26
Write
27
-----
28
 
29
15.2 s
30
15.1 s
31
15.1 s
32
 
33
average:
34
15.1 s / 2^27 write cycles = 112.5 ns / write cycle
35
which means 11.25 clock cycles per write
36
(the corresponding data rate is 71.1 MB/s)
37
 
38
 
39
Mix (75% read, 25% write)
40
-------------------------
41
 
42
19.1 s
43
19.1 s
44
19.3 s
45
 
46
average:
47
19.2 s / 2^27 operations = 143.1 ns / operation
48
which means 14.3 clock cycles per operation
49
 
50
 
51
Conclusions
52
-----------
53
 
54
1) The weighted average from read and write operations
55
   (0.75*15.35 + 0.25*11.25) is a very good approximation
56
   for the value measured in the "mixed" case. This
57
   confirms the different values for the "read" and
58
   "write" cases.
59
 
60
2) The test circuit needs one clock cycle to recover
61
   from a read or write operation before the next one
62
   is started. The recommended number of clock cycles
63
   for a memory simulation are therefore
64
       read   : 14 clock cycles
65
       write  : 10 clock cycles
66
   measured from start of the operation (leading edge
67
   of signal stb) to end of the operation (trailing
68
   edge of signal ack).

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.