Repository navigation
Decoder - #16
Closed
YunseonShin wants to merge 2 commits into
Closed
Decoder#16YunseonShin wants to merge 2 commits into
YunseonShin wants to merge 2 commits into
Conversation
YWHyuk
reviewed
Jan 16, 2024
| with open(os.path.join(self.dir, file), 'r') as asm: | ||
| asm_code = asm.read() | ||
| for branch in branches: | ||
| asm_code = asm_code.replace(branch, "nop") # FIXME. remove the branch instruction |
| def __call__(self, file): | ||
| self.decode(file) | ||
|
|
||
| def preprocess(self, file): # for single tile |
Collaborator
There was a problem hiding this comment.
How about add some comment that explains this function
| self.connect_node(node, node2) | ||
| else: # node2.type == "Compute" | ||
| if node.search_reg(node2.inst[2]) or node.search_reg(node2.inst[3]): | ||
| self.connect_node(node, node2) |
Collaborator
There was a problem hiding this comment.
Consider register renaming algorithm
YWHyuk
reviewed
Jan 16, 2024
| "vl2re32.v", "vl2re64.v", "vl2re8.v", "vl2re16.v"] | ||
| stores = ["vse32.v", "vse64.v", "vse8.v", "vse16.v", | ||
| "vs2r.v", "vs2re32.v", "vs2re64.v", "vs2re8.v", "vs2re16.v"] | ||
|
|
Collaborator
There was a problem hiding this comment.
Use capital when using global variable
| queue = [] | ||
| for root in self.dummy_node.children: | ||
| root.visited = True | ||
| queue.append(root) |
Collaborator
There was a problem hiding this comment.
How about this?
self.dummy_node.visited = True
queue = [self.dummy_node]
Collaborator
|
We have to support gemmini style instruction. This feature should be added! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I implemented tile graph generator (a.k.a. decoder) and add a gitignore file