Skip to content
Permalink

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: m-labs/nmigen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 668ff40a75de
Choose a base ref
...
head repository: m-labs/nmigen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5800f00776c8
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 3, 2019

  1. hdl.rec: accept Record(src_loc_at=...).

    whitequark committed Jul 3, 2019
    Copy the full SHA
    5800f00 View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 nmigen/hdl/rec.py
6 changes: 3 additions & 3 deletions nmigen/hdl/rec.py
Original file line number Diff line number Diff line change
@@ -86,12 +86,12 @@ def like(cls, other, name=None, name_suffix=None, src_loc_at=0):
new_name = tracer.get_var_name(depth=2 + src_loc_at, default=None)
return cls(other.layout, new_name)

def __init__(self, layout, name=None, *, fields=None):
def __init__(self, layout, name=None, src_loc_at=0, *, fields=None):
if name is None:
name = tracer.get_var_name(default=None)
name = tracer.get_var_name(depth=2 + src_loc_at, default=None)

self.name = name
self.src_loc = tracer.get_src_loc()
self.src_loc = tracer.get_src_loc(src_loc_at)

def concat(a, b):
if a is None: