MOESI_CMP_token.py (7541:1e1f63dfd130) | MOESI_CMP_token.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; --- 159 unchanged lines hidden (view full) --- 168 dma_seq = DMASequencer(version = i, 169 physMemPort = system.physmem.port, 170 physmem = system.physmem) 171 172 dma_cntrl = DMA_Controller(version = i, 173 dma_sequencer = dma_seq) 174 175 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; --- 159 unchanged lines hidden (view full) --- 168 dma_seq = DMASequencer(version = i, 169 physMemPort = system.physmem.port, 170 physmem = system.physmem) 171 172 dma_cntrl = DMA_Controller(version = i, 173 dma_sequencer = dma_seq) 174 175 exec("system.dma_cntrl%d = dma_cntrl" % i) |
176 if dma_device.type == 'MemTest': 177 system.dma_cntrl.dma_sequencer.port = dma_device.test 178 else: 179 system.dma_cntrl.dma_sequencer.port = dma_device.dma |
|
176 dma_cntrl.dma_sequencer.port = dma_device.dma 177 dma_cntrl_nodes.append(dma_cntrl) 178 179 all_cntrls = l1_cntrl_nodes + \ 180 l2_cntrl_nodes + \ 181 dir_cntrl_nodes + \ 182 dma_cntrl_nodes 183 184 return (cpu_sequencers, dir_cntrl_nodes, all_cntrls) | 180 dma_cntrl.dma_sequencer.port = dma_device.dma 181 dma_cntrl_nodes.append(dma_cntrl) 182 183 all_cntrls = l1_cntrl_nodes + \ 184 l2_cntrl_nodes + \ 185 dir_cntrl_nodes + \ 186 dma_cntrl_nodes 187 188 return (cpu_sequencers, dir_cntrl_nodes, all_cntrls) |