Skip to content

ChiselSim peek/poke/expect for Enums, Records, Vecs, and generic Data #4824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f0ce6de
peek/poke/expect for all Data types, include Records and Vecs
kammoh Mar 23, 2025
541424a
cleanup
kammoh Mar 23, 2025
89a693d
add peekBoolean for testableBool
kammoh Mar 23, 2025
0bb1c96
remove type equivalency check for Vec
kammoh Mar 24, 2025
eb1af21
fix test's expected message
kammoh Mar 24, 2025
f32253f
Change Bool expect fail message to 0/1 format
kammoh Mar 24, 2025
3979c6d
remove type equivalency check for Vec
kammoh Mar 24, 2025
d8f9a1c
WIP: rethink and simplify API, make DRYer
kammoh Mar 26, 2025
b4c6c2a
expect; peekValue should be public
kammoh Apr 23, 2025
2dfe815
fix to pass tests, default for package private + protected expect[U]
kammoh Apr 23, 2025
abd7141
Changed expect[U]; Fixed filename to match class case
kammoh Apr 23, 2025
38eaa3f
move FailedExpectationException (and others) outside of PeekPokeAPI
kammoh Apr 23, 2025
7028fd3
PeekPokeAPI companion object not an instance of trait
kammoh Apr 24, 2025
f6f7586
Vec expect message -> "First" mismatch
kammoh Apr 24, 2025
067fda5
_poke for Vecs, rename _expect, mark as internal and package private
kammoh Apr 25, 2025
0fef924
reorganize + cleanup code and tests
kammoh Apr 25, 2025
92afea0
reduce the number of testcases
kammoh Apr 27, 2025
34bbcfd
nit picking messages; useless extra method
kammoh Apr 27, 2025
79aa295
Remove expect with buildMessage from Peekable (all Data) and make things
kammoh May 2, 2025
2b21291
remove end of line trailing whitespace
kammoh May 2, 2025
e8a8476
fix DontCareBinding check!!!
kammoh May 2, 2025
8bd5e37
remove redundant expect with (BigInt,BigInt) buildMessage
kammoh May 3, 2025
64d02ca
added tests for expectPartial(), fixed custom message
kammoh May 3, 2025
0454560
direct Bool peek/poke: cleaner, maybe a bit of performance gain
kammoh May 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading