-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose JTAG output port, and move debug config into a standalone file.
- Loading branch information
Showing
5 changed files
with
65 additions
and
52 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-- SPDX-FileCopyrightText: 2022-2024 Google LLC | ||
-- | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
{-# LANGUAGE GADTs #-} | ||
|
||
module Utils.DebugConfig where | ||
|
||
import Prelude | ||
|
||
-------------------------------------- | ||
-- | ||
-- Debugging configuration | ||
-- | ||
-------------------------------------- | ||
|
||
data DebugConfiguration where | ||
-- | Run a program and only output what the program writes to the | ||
-- character-device | ||
RunCharacterDevice :: DebugConfiguration | ||
-- | Run a program and print detailed information of CPU bus interactions | ||
InspectBusses :: | ||
-- | # of cycles the program takes to initialise the instruction memory | ||
Int -> | ||
-- | # of "uninteresting" cycles to skip, such as runtime setup code | ||
Int -> | ||
-- | # of "interesting" cycles to inspect | ||
Maybe Int -> | ||
-- | inspect instruct-bus interactions | ||
Bool -> | ||
-- | inspect data-bus interactions | ||
Bool -> | ||
DebugConfiguration | ||
-- | Run a program and output all the write operations | ||
InspectWrites :: DebugConfiguration |
This file contains 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