StateMachine.py (9596:aa73a81cf92c) | StateMachine.py (9597:f9b731fc6064) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 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; --- 468 unchanged lines hidden (view full) --- 477 code('m_${{param.name}}_ptr = p->${{param.name}};') 478 else: 479 code('m_${{param.name}} = p->${{param.name}};') 480 481 # 482 # For the l1 cache controller, add the special atomic support which 483 # includes passing the sequencer a pointer to the controller. 484 # | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 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; --- 468 unchanged lines hidden (view full) --- 477 code('m_${{param.name}}_ptr = p->${{param.name}};') 478 else: 479 code('m_${{param.name}} = p->${{param.name}};') 480 481 # 482 # For the l1 cache controller, add the special atomic support which 483 # includes passing the sequencer a pointer to the controller. 484 # |
485 if self.ident == "L1Cache": 486 if not sequencers: 487 self.error("The L1Cache controller must include the sequencer " \ 488 "configuration parameter") 489 490 for seq in sequencers: 491 code(''' | 485 for seq in sequencers: 486 code(''' |
492m_${{seq}}_ptr->setController(this); 493 ''') 494 | 487m_${{seq}}_ptr->setController(this); 488 ''') 489 |
495 else: 496 for seq in sequencers: 497 code(''' 498m_${{seq}}_ptr->setController(this); 499 ''') 500 | |
501 # 502 # For the DMA controller, pass the sequencer a pointer to the 503 # controller. 504 # 505 if self.ident == "DMA": 506 if not contains_dma_sequencer: 507 self.error("The DMA controller must include the sequencer " \ 508 "configuration parameter") --- 1193 unchanged lines hidden --- | 490 # 491 # For the DMA controller, pass the sequencer a pointer to the 492 # controller. 493 # 494 if self.ident == "DMA": 495 if not contains_dma_sequencer: 496 self.error("The DMA controller must include the sequencer " \ 497 "configuration parameter") --- 1193 unchanged lines hidden --- |