MOESI_hammer.py (7541:1e1f63dfd130) MOESI_hammer.py (7544:90c5eb6a5e66)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 125 unchanged lines hidden (view full) ---

134 dma_seq = DMASequencer(version = i,
135 physMemPort = system.physmem.port,
136 physmem = system.physmem)
137
138 dma_cntrl = DMA_Controller(version = i,
139 dma_sequencer = dma_seq)
140
141 exec("system.dma_cntrl%d = dma_cntrl" % i)
1# Copyright (c) 2006-2007 The Regents of The University of Michigan
2# Copyright (c) 2009 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 125 unchanged lines hidden (view full) ---

134 dma_seq = DMASequencer(version = i,
135 physMemPort = system.physmem.port,
136 physmem = system.physmem)
137
138 dma_cntrl = DMA_Controller(version = i,
139 dma_sequencer = dma_seq)
140
141 exec("system.dma_cntrl%d = dma_cntrl" % i)
142 if dma_device.type == 'MemTest':
143 system.dma_cntrl.dma_sequencer.port = dma_device.test
144 else:
145 system.dma_cntrl.dma_sequencer.port = dma_device.dma
142 dma_cntrl.dma_sequencer.port = dma_device.dma
143 dma_cntrl_nodes.append(dma_cntrl)
144
145 all_cntrls = l1_cntrl_nodes + dir_cntrl_nodes + dma_cntrl_nodes
146
147 return (cpu_sequencers, dir_cntrl_nodes, all_cntrls)
146 dma_cntrl.dma_sequencer.port = dma_device.dma
147 dma_cntrl_nodes.append(dma_cntrl)
148
149 all_cntrls = l1_cntrl_nodes + dir_cntrl_nodes + dma_cntrl_nodes
150
151 return (cpu_sequencers, dir_cntrl_nodes, all_cntrls)