[Libre-soc-bugs] [Bug 402] New: RecordObject to automatically prepend name of object to child signals

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Jun 24 01:55:33 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=402

            Bug ID: 402
           Summary: RecordObject to automatically prepend name of object
                    to child signals
           Product: Libre-SOC's first SoC
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: CONFIRMED
          Severity: enhancement
          Priority: ---
         Component: Source Code
          Assignee: lkcl at lkcl.net
          Reporter: lkcl at lkcl.net
                CC: libre-soc-bugs at lists.libre-soc.org
   NLnet milestone: ---

https://git.libre-soc.org/?p=soc.git;a=commitdiff;h=8c63d6dfe17825ca984854e33e20589df6c5bdb6

i like the idea of having the name of the port prepended to the signals (and
other records) however the extra line length added with the compact nature of
the PortInterface declararion.

it would i think be much better to have *all* RecordObjects do this.

the only thing is it involves digging into the Signal (or Record) to obtain a
name.

this might involve a bit of code duplication from nmigen.

__setattr__is overridden in RecordObject already, so there is access to the
Signal (or Record) being added, and at that time it becomes possible to mess
with the name.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list