Skip to content
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

[RFC] emulation devices for t1rocket #800

Merged
merged 7 commits into from
Oct 23, 2024

Conversation

OceanS2000
Copy link
Contributor

Add extensible devices emulation for t1rocket simulation dpi backend. Currently only simple Memory device is implemented, and more devices with more functionality are expected to come.

@OceanS2000 OceanS2000 force-pushed the t1rocket-emu-devices branch from 9b4b185 to 5316af9 Compare October 14, 2024 15:41
@sequencer sequencer requested a review from FanShupei October 14, 2024 17:06
difftest/dpi_t1rocket/src/bus.rs Outdated Show resolved Hide resolved
difftest/dpi_t1rocket/src/bus.rs Outdated Show resolved Hide resolved
difftest/dpi_t1rocket/src/bus.rs Outdated Show resolved Hide resolved
difftest/dpi_t1rocket/src/bus/mem.rs Outdated Show resolved Hide resolved
@OceanS2000 OceanS2000 force-pushed the t1rocket-emu-devices branch 2 times, most recently from 2283c59 to 7381b65 Compare October 15, 2024 13:31
@FanShupei
Copy link
Contributor

The code seems good now.

The last concern is that the refactor exposes an existing limitation of our simulation framework: HOW to handle speculative load.

The previous code returns garbage data when prefetch is out of bound. The new code will panic immediately. I suspect this behavior change is why we have to change testcases to make it happy.

@OceanS2000 OceanS2000 force-pushed the t1rocket-emu-devices branch 3 times, most recently from a41fb69 to 70e33fa Compare October 20, 2024 13:13
@Clo91eaf Clo91eaf force-pushed the t1rocket-emu-devices branch 3 times, most recently from c83b5b0 to bb493ae Compare October 23, 2024 06:58
@sequencer sequencer requested a review from FanShupei October 23, 2024 10:46
@FanShupei
Copy link
Contributor

LGTM

@FanShupei FanShupei dismissed their stale review October 23, 2024 10:59

resolved

@sequencer sequencer merged commit 9d62afd into chipsalliance:master Oct 23, 2024
129 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants