LdsState.py (13665:9c7fe3811b88) LdsState.py (13892:0182a0601f66)
1# Copyright (c) 2015 Advanced Micro Devices, Inc.
2# All rights reserved.
3#
4# For use for simulation and test purposes only
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are met:
8#

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

30# POSSIBILITY OF SUCH DAMAGE.
31#
32# Authors: Joe Gross
33
34from m5.defines import buildEnv
35from m5.params import *
36from m5.proxy import *
37
1# Copyright (c) 2015 Advanced Micro Devices, Inc.
2# All rights reserved.
3#
4# For use for simulation and test purposes only
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are met:
8#

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

30# POSSIBILITY OF SUCH DAMAGE.
31#
32# Authors: Joe Gross
33
34from m5.defines import buildEnv
35from m5.params import *
36from m5.proxy import *
37
38from m5.objects.MemObject import MemObject
38from m5.objects.ClockedObject import ClockedObject
39
39
40class LdsState(MemObject):
40class LdsState(ClockedObject):
41 type = 'LdsState'
42 cxx_class = 'LdsState'
43 cxx_header = 'gpu-compute/lds_state.hh'
44 size = Param.Int(65536, 'the size of the LDS')
45 range = Param.AddrRange('64kB', "address space of the LDS")
46 bankConflictPenalty = Param.Int(1, 'penalty per LDS bank conflict when '\
47 'accessing data')
48 banks = Param.Int(32, 'Number of LDS banks')
49 cuPort = SlavePort("port that goes to the compute unit")
41 type = 'LdsState'
42 cxx_class = 'LdsState'
43 cxx_header = 'gpu-compute/lds_state.hh'
44 size = Param.Int(65536, 'the size of the LDS')
45 range = Param.AddrRange('64kB', "address space of the LDS")
46 bankConflictPenalty = Param.Int(1, 'penalty per LDS bank conflict when '\
47 'accessing data')
48 banks = Param.Int(32, 'Number of LDS banks')
49 cuPort = SlavePort("port that goes to the compute unit")