diff --git a/src/core/Superescalar/Superescalar.ts b/src/core/Superescalar/Superescalar.ts index 3ed34afa..e4de912b 100644 --- a/src/core/Superescalar/Superescalar.ts +++ b/src/core/Superescalar/Superescalar.ts @@ -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 { diff --git a/src/core/VLIW/VLIWParser.ts b/src/core/VLIW/VLIWParser.ts index 9c4f2e5e..9f344372 100644 --- a/src/core/VLIW/VLIWParser.ts +++ b/src/core/VLIW/VLIWParser.ts @@ -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) {