cs154 ucsbcs154lab6 2bitpred.py
# ucsbcs154lab6 # All Rights Reserved # Copyright (c) 2023 University of California Santa Barbara # Distribution Prohibited import pyrtl pyrtl.core.set_debug_mode() fetch_pc = pyrtl.Input(bitwidth=32, name=’fetch_pc’) # current pc in fetch update_prediction = pyrtl.Input(bitwidth=1, name=’update_prediction’) # whether to update prediction update_branch_pc = pyrtl.Input(bitwidth=32, name=’update_branch_pc’) # previous pc (in decode/execute) update_branch_taken = pyrtl.Input(bitwidth=1, name=’update_branch_taken’) # whether branch […]
cs154 ucsbcs154lab6 2bitpred.py Read More »