Skip to content

Deprecate Record.connect#368

Closed
awygle wants to merge 1 commit intoamaranth-lang:masterfrom
awygle:record_connect
Closed

Deprecate Record.connect#368
awygle wants to merge 1 commit intoamaranth-lang:masterfrom
awygle:record_connect

Conversation

@awygle
Copy link
Copy Markdown
Contributor

@awygle awygle commented Apr 24, 2020

Deprecate the unfortunate Record.connect method, and the Direction functionality of Record as well. Resolves #342 .

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 24, 2020

Codecov Report

Merging #368 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #368      +/-   ##
==========================================
+ Coverage   82.56%   82.58%   +0.02%     
==========================================
  Files          35       35              
  Lines        5952     5962      +10     
  Branches     1211     1213       +2     
==========================================
+ Hits         4914     4924      +10     
+ Misses        872      871       -1     
- Partials      166      167       +1     
Impacted Files Coverage Δ
nmigen/hdl/rec.py 97.00% <100.00%> (+0.09%) ⬆️
nmigen/build/run.py 31.25% <0.00%> (ø)
nmigen/hdl/ir.py 95.47% <0.00%> (+0.05%) ⬆️

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 ed0f508...c88a927. Read the comment docs.

@whitequark
Copy link
Copy Markdown
Member

I'm wondering if we should hold off merging this until #355 is done, since until #355 is done, we really can't encourage people to add their own methods to Record.

@awygle
Copy link
Copy Markdown
Contributor Author

awygle commented Apr 24, 2020

That is true (hence the deprecation message saying to connect fields manually). I am OK with holding off.

@whitequark whitequark marked this pull request as draft April 24, 2020 22:36
@whitequark
Copy link
Copy Markdown
Member

whitequark commented Jul 8, 2020

Since (as discussed on the last meeting) we're likely going to deprecate Record entirely and instead provide packed structs and interfaces, I'm closing this.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Separate Record into PackedStruct and Interface components

2 participants