• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

phanrahan / magma / 1715
73%
master: 75%

Build:
Build:
LAST BUILD BRANCH: hwtypes2
DEFAULT BRANCH: master
Ran 02 May 2019 07:56PM UTC
Jobs 3
Files 64
Run time 8min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1715

push

travis-ci

rsetaluri
Initial implementation of new style class definition syntax

This is a first pass attempt at a "new-style" class definition
syntax for magma circuits.  This removes the requirement that the user
specify the definition inside a `definition` classmethod. Instead,
the user constructs an `IO` object with the interface and then performs
the desired wiring operators to define the circuit.

The `IO` object constructs a set of anonymous values to be used for the
ports.  The circuit definition is defined in terms of the anonymous
values.  These changes add a final stage to the metaclass `__new__`
logic defined in the method `process_new_style_definition`.

The `process_new_style_definition` method constructs an "old-style" IO
list (e.g. `["I0", m.In(m.Bit), ...]`) and passes this to the old logic
for setting up interfaces (`DeclareInterface`).  This required the
minimal amount of changes to the existing code, although we may consider
rearchitecting the entire interface pipeline given this opportunity.

Because we use the old-style interface setup logic, we must traverse the
definition graph defined on the temporary anonymous values setup by the
`IO` object and replace the anonymous interface values with the concrete
values from the old-style interface setup logic.

`process_new_style_definition` also traverses the definition graph and
"places" the instances (by using `self.place`) within the current
definition.

4176 of 5695 relevant lines covered (73.33%)

0.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1715.1 02 May 2019 07:56PM UTC 0
73.33
Travis Job 1715.1
2 1715.2 02 May 2019 08:00PM UTC 0
Travis Job 1715.2
3 1715.3 02 May 2019 08:05PM UTC 0
Travis Job 1715.3
Source Files on build 1715
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1715
  • b4c3d876 on github
  • Next Build on remove-definition-method (#1718)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc