Clean up
This commit is contained in:
parent
2092c5a138
commit
b8eaf0906a
|
@ -1,5 +1,7 @@
|
||||||
|
import sys
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
sys.path.append("../../")
|
||||||
from migScope.tools.conv import *
|
from migScope.tools.conv import *
|
||||||
|
|
||||||
class Var:
|
class Var:
|
||||||
|
@ -161,7 +163,7 @@ def main():
|
||||||
myvcd.add(Var("wire",3,"foo3"))
|
myvcd.add(Var("wire",3,"foo3"))
|
||||||
myvcd.add(Var("wire",4,"foo4"))
|
myvcd.add(Var("wire",4,"foo4"))
|
||||||
ramp = [i%128 for i in range(1024)]
|
ramp = [i%128 for i in range(1024)]
|
||||||
myvcd.add(Var("wire",16,"sinus",ramp))
|
myvcd.add(Var("wire",16,"ramp",ramp))
|
||||||
print(myvcd)
|
print(myvcd)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -9,7 +9,6 @@ import sys
|
||||||
sys.path.append("../")
|
sys.path.append("../")
|
||||||
|
|
||||||
from migScope import trigger, recorder
|
from migScope import trigger, recorder
|
||||||
|
|
||||||
from migScope.tools.truthtable import *
|
from migScope.tools.truthtable import *
|
||||||
from migScope.tools.vcd import *
|
from migScope.tools.vcd import *
|
||||||
|
|
||||||
|
@ -76,11 +75,14 @@ def csr_transactions(trigger0, recorder0):
|
||||||
#Arm
|
#Arm
|
||||||
yield TWrite(recorder0.address + 1, 1)
|
yield TWrite(recorder0.address + 1, 1)
|
||||||
|
|
||||||
|
# Wait Record to be done
|
||||||
|
##############################
|
||||||
global rec_done
|
global rec_done
|
||||||
while not rec_done:
|
while not rec_done:
|
||||||
yield None
|
yield None
|
||||||
|
|
||||||
|
# Read recorded data
|
||||||
|
##############################
|
||||||
global dat_rdy
|
global dat_rdy
|
||||||
for t in range(64):
|
for t in range(64):
|
||||||
yield TWrite(recorder0.address + 7, 1)
|
yield TWrite(recorder0.address + 7, 1)
|
||||||
|
|
Loading…
Reference in New Issue