Skip to content

fix Issue#152 IndexError in dram_latency.py#153

Merged
iamsarbartha merged 1 commit intoscalesim-project:mainfrom
GeorgeLin200100:main
Nov 4, 2025
Merged

fix Issue#152 IndexError in dram_latency.py#153
iamsarbartha merged 1 commit intoscalesim-project:mainfrom
GeorgeLin200100:main

Conversation

@GeorgeLin200100
Copy link
Contributor

This PR fixes #152 with minimal changes to scripts/dram_latency.py.

@iamsarbartha iamsarbartha self-assigned this Nov 4, 2025
@iamsarbartha
Copy link
Collaborator

Thanks @GeorgeLin200100 for finding and fixing this corner case. Since the empty slice does not create DRAM transactions, this leads to the error. I approve this fix.

Copy link
Collaborator

@iamsarbartha iamsarbartha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix prevents a code exit for empty last slice

@iamsarbartha iamsarbartha reopened this Nov 4, 2025
@iamsarbartha iamsarbartha merged commit 1a7a5d0 into scalesim-project:main Nov 4, 2025
2 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.

IndexError in dram_latency.py

2 participants