-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (25 loc) · 1.18 KB
/
config.py
File metadata and controls
30 lines (25 loc) · 1.18 KB
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
class GlobalConfig:
"""
A configuration class for controlling various aspects of the assembler's behavior.
Attributes:
suppressComments (bool):
If True, no comments will be emitted in the output generated by the assembler.
useHBMPlaceHolders (bool):
Specifies whether to use placeholders (names) for variable locations in HBM
or the actual variable locations.
useXInstFetch (bool):
Specifies whether `xinstfetch` instructions should be added into CInstQ or not.
When no `xinstfetch` instructions are added, it is assumed that the HERACLES
automated mechanism for `xinstfetch` will be activated.
debugVerbose (int):
If greater than 0, verbose prints will occur. Its value indicates how often to
print within loops (every `debugVerbose` iterations). This is used for internal
debugging purposes.
hashHBM (bool): Specifies whether the target architecture has HBM or not.
"""
suppressComments = False
useHBMPlaceHolders = True
useXInstFetch = True
debugVerbose: int = 0
hasHBM = True