From 01ec8baa9b4ce095e5cf7798715d0997c154400f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caio=20Eduardo=20Ramos=20Ar=C3=A3es?= Date: Wed, 7 Jun 2023 10:52:47 -0300 Subject: [PATCH] Add Reorder Buffer table --- pages/index.js | 54 +++++++++++++++++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/pages/index.js b/pages/index.js index 6a52ab8..de1663c 100644 --- a/pages/index.js +++ b/pages/index.js @@ -9,6 +9,7 @@ import { useState } from 'react' export default function Home() { const [instructionStatus, setInstructionStatus] = useState([]); + const [reorderBuffer, setReorderBuffer] = useState([]); const [reservationStations, setReservationStations] = useState([]); const [registerStatus, setRegisterStatus] = useState([]); @@ -33,31 +34,33 @@ export default function Home() {
-
-

Instruction Status

+
+

Reorder Buffer

+ + - - - + + + - {instructionStatus.map((instr, index) => ( - - - - - - - ))} + + + + + + + +
EntryBusy InstructionIssuedExecuteWrite ResultStateDestinationValue
batatabatatabatatabatata
batatabatatabatatabatatabatatabatata
-

Reservations Stations

+

Reservation Stations

@@ -132,6 +135,29 @@ export default function Home() { ))}
+
+

Instruction Status

+
+ + + + + + + + + + + {instructionStatus.map((instr, index) => ( + + + + + + + ))} + +
InstructionIssuedExecuteWrite Result
batatabatatabatatabatata