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

build: add DSL for defining platform resources. #59

Merged
merged 1 commit into from Apr 24, 2019
Merged

build: add DSL for defining platform resources. #59

merged 1 commit into from Apr 24, 2019

Conversation

jfng
Copy link
Contributor

@jfng jfng commented Apr 18, 2019

No description provided.

@codecov
Copy link

codecov bot commented Apr 18, 2019

Codecov Report

Merging #59 into master will increase coverage by 0.17%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   85.73%   85.91%   +0.17%     
==========================================
  Files          27       28       +1     
  Lines        4010     4060      +50     
  Branches      803      817      +14     
==========================================
+ Hits         3438     3488      +50     
  Misses        479      479              
  Partials       93       93
Impacted Files Coverage Δ
nmigen/build/dsl.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8e92c0...3dbd423. Read the comment docs.

Copy link
Contributor

@whitequark whitequark left a comment

Choose a reason for hiding this comment

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

See review comments above.

Also, please rename the entire module such that it becomes nmigen.build.dsl.

Also, please write tests for Pins and DiffPairs to verify that these APIs work correctly. I think I will ask for more changes to Subsignal so you don't need to write tests for that for now.

nmigen/build/generic_platform.py Outdated Show resolved Hide resolved
nmigen/build/generic_platform.py Outdated Show resolved Hide resolved
nmigen/build/generic_platform.py Outdated Show resolved Hide resolved
nmigen/build/generic_platform.py Outdated Show resolved Hide resolved
nmigen/build/generic_platform.py Outdated Show resolved Hide resolved
nmigen/build/generic_platform.py Outdated Show resolved Hide resolved
nmigen/build/generic_platform.py Outdated Show resolved Hide resolved
Copy link
Contributor

@whitequark whitequark left a comment

Choose a reason for hiding this comment

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

Thank you, this is very good! I thought about Resource and it is basically OK. Please add a test for that and I'll merge this.

nmigen/build/dsl.py Outdated Show resolved Hide resolved
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.

None yet

2 participants