Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tb/asmicon_wb: better access pattern

  • Loading branch information...
commit 2ccdade88eef189c899a814d64b493cab2b138b2 1 parent 87ee4ba
Sébastien Bourdeauducq authored April 30, 2012

Showing 1 changed file with 10 additions and 1 deletion. Show diff stats Hide diff stats

  1. 11  tb/asmicon/asmicon_wb.py
11  tb/asmicon/asmicon_wb.py
@@ -10,9 +10,18 @@
10 10
 l2_size = 8192 # in bytes
11 11
 
12 12
 def my_generator():
13  
-	for x in range(100):
  13
+	for x in range(20):
  14
+		t = TWrite(x, x)
  15
+		yield t
  16
+		print(str(t) + " delay=" + str(t.latency))
  17
+	for x in range(20):
14 18
 		t = TRead(x)
15 19
 		yield t
  20
+		print(str(t) + " delay=" + str(t.latency))
  21
+	for x in range(20):
  22
+		t = TRead(x+l2_size//4)
  23
+		yield t
  24
+		print(str(t) + " delay=" + str(t.latency))
16 25
 
17 26
 def main():
18 27
 	controller = ASMIcon(sdram_phy, sdram_geom, sdram_timing)

0 notes on commit 2ccdade

Please sign in to comment.
Something went wrong with that request. Please try again.