Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
endes0 committed Feb 3, 2024
1 parent 9715779 commit 1de4a8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/Superescalar/Superescalar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export class Superescalar extends Machine {

public set issue(value: number) {
this._issue = value;
this._prefetchUnit = new PrefetchUnit(this.issue * 2);
this._decoder = new PrefetchUnit(this.issue);
}

public get reorderBuffer(): ReorderBuffer {
Expand Down
2 changes: 1 addition & 1 deletion src/core/VLIW/VLIWParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class VLIWParser {
let index = +currentIndex.index;
let functionalUnitType = componets[0];
let functionalUnitIndex = +componets[1][0].text; //TODO: Check if this is out of bounds
let predicate = +componets[1][1].text;
let predicate = +componets[1][1].text; //TODO: Check if this is out of bounds

// Check if the recived functional unit type is the same as the one in the code
if (functionalUnitType !== currentIndex.functionalUnitType) {
Expand Down

0 comments on commit 1de4a8d

Please sign in to comment.