-
Notifications
You must be signed in to change notification settings - Fork 177
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: amaranth-lang/amaranth
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 438edf4112ef
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: amaranth-lang/amaranth
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 200af07f9f74
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 3 commits
- 3 files changed
- 1 contributor
Commits on Aug 26, 2020
-
sim._pyrtl: optimize uses of reflexive operators.
When a literal is used on the left-hand side of a numeric operator, Python is able to constant-fold some expressions: >>> dis.dis(lambda x: 0 + 0 + x) 1 0 LOAD_CONST 1 (0) 2 LOAD_FAST 0 (x) 4 BINARY_ADD 6 RETURN_VALUE If a literal is used on the right-hand side such that the left-hand side is variable, this doesn't happen: >>> dis.dis(lambda x: x + 0 + 0) 1 0 LOAD_FAST 0 (x) 2 LOAD_CONST 1 (0) 4 BINARY_ADD 6 LOAD_CONST 1 (0) 8 BINARY_ADD 10 RETURN_VALUE PyRTL generates fairly redundant code due to the pervasive masking, and because of that, transforming expressions into the former form, where possible, improves runtime by about 10% on Minerva SRAM SoC.
Configuration menu - View commit details
-
Copy full SHA for 8c6c364 - Browse repository at this point
Copy the full SHA 8c6c364View commit details -
vendor.xilinx_7series: unbreak.
This commit fixes a series of typos introduced in commit 4e208b0.
Configuration menu - View commit details
-
Copy full SHA for abaa909 - Browse repository at this point
Copy the full SHA abaa909View commit details -
Configuration menu - View commit details
-
Copy full SHA for 200af07 - Browse repository at this point
Copy the full SHA 200af07View commit details
There are no files selected for viewing