Ruby: Fix dma controller configs/ruby/MI_example.py
The dma controller in configs/ruby/MI_example.py was not being set correctly. This patch fixes it.
This commit is contained in:
parent
145deb7c88
commit
ca247a81f0
1 changed files with 2 additions and 2 deletions
|
@ -149,9 +149,9 @@ def create_system(options, system, piobus, dma_devices, ruby_system):
|
||||||
|
|
||||||
exec("system.dma_cntrl%d = dma_cntrl" % i)
|
exec("system.dma_cntrl%d = dma_cntrl" % i)
|
||||||
if dma_device.type == 'MemTest':
|
if dma_device.type == 'MemTest':
|
||||||
system.dma_cntrl.dma_sequencer.port = dma_device.test
|
exec("system.dma_cntrl%d.dma_sequencer.port = dma_device.test" % i)
|
||||||
else:
|
else:
|
||||||
system.dma_cntrl.dma_sequencer.port = dma_device.dma
|
exec("system.dma_cntrl%d.dma_sequencer.port = dma_device.dma" % i)
|
||||||
dma_cntrl.dma_sequencer.port = dma_device.dma
|
dma_cntrl.dma_sequencer.port = dma_device.dma
|
||||||
dma_cntrl_nodes.append(dma_cntrl)
|
dma_cntrl_nodes.append(dma_cntrl)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue