-
Notifications
You must be signed in to change notification settings - Fork 0
/
asc_t1_defs.py
80 lines (56 loc) · 1.67 KB
/
asc_t1_defs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
from threading import *
class Process:
def __init__(self, operation_list):
self.__operation_list = operation_list
self.executed_ops = 0
def get_number_of_operations(self):
return len(self.__operation_list)
def get_operation(self, i):
return self.__operation_list[i]
def get_number_of_executed_operations(self):
return self.executed_ops
def inc_number_of_executed_operations(self):
self.executed_ops += 1
def wait_for_next_time_step(object, done):
pass
class GenericRAM(Thread):
def __init__(self):
Thread.__init__(self)
def set_cell_value(self, addr, value):
pass
def run(self):
pass
class GenericCache(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
pass
class GenericRegisterSet(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
pass
class GenericProcessor(Thread):
def __init__(self):
Thread.__init__(self)
def run(self):
pass
class GenericProcessScheduler(Thread):
def __init__(self):
Thread.__init__(self)
def submit_process(self, process):
pass
def run(self):
pass
def init():
pass
def get_RAM(num_ram_cells, num_ram_requests_per_time_step, system_manager):
pass
def get_cache(num_cache_cells, ram, system_manager):
pass
def get_register_set(num_register_cells, cache, system_manager):
pass
def get_processor(register_set, system_manager):
pass
def get_process_scheduler(processor_list, system_manager):
pass