Skip to content

class Memory: allow to set default simulate value for all generated memory blocks.#268

Open
Fatsie wants to merge 1 commit intom-labs:masterfrom
Fatsie:memory_defsimulate
Open

class Memory: allow to set default simulate value for all generated memory blocks.#268
Fatsie wants to merge 1 commit intom-labs:masterfrom
Fatsie:memory_defsimulate

Conversation

@Fatsie
Copy link
Copy Markdown
Contributor

@Fatsie Fatsie commented Nov 12, 2019

I have nmigen code mixed with other RTL language code so am using external simulator. With this option I can now turn off the memory preparation for pysim for all generated blocks.

from nmigen import *

Memory.simulate = False

… memory blocks.

If `simulate` parameter passed to `Memory.__init_()` is None the class
`simulate` value will be used.
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 12, 2019

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.07%. Comparing base (f8f7d83) to head (40884c9).
⚠️ Report is 74 commits behind head on master.

Files with missing lines Patch % Lines
nmigen/hdl/mem.py 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #268      +/-   ##
==========================================
- Coverage   82.07%   82.07%   -0.01%     
==========================================
  Files          34       34              
  Lines        5597     5600       +3     
  Branches     1200     1201       +1     
==========================================
+ Hits         4594     4596       +2     
  Misses        863      863              
- Partials      140      141       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@whitequark
Copy link
Copy Markdown
Contributor

whitequark commented Nov 15, 2019

I'm rewriting the simulator right now so that it would not need the (expensive) memory lowering. So I'll keep this open, with the understanding that Memory.simulate will go away completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants