leonardt / fault

A Python package for testing hardware (part of the magma ecosystem)
BSD 3-Clause "New" or "Revised" License
41 stars 13 forks source link

Fix file IO with chunk_size > 1 #115

Closed Kuree closed 5 years ago

Kuree commented 5 years ago

Is there any easy way to create a wide input circuit and test in fault?

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 1028


Changes Missing Coverage Covered Lines Changed/Added Lines %
fault/system_verilog_target.py 0 4 0.0%
<!-- Total: 0 4 0.0% -->
Files with Coverage Reduction New Missed Lines %
fault/system_verilog_target.py 2 56.91%
<!-- Total: 2 -->
Totals Coverage Status
Change from base Build 1010: -0.04%
Covered Lines: 1387
Relevant Lines: 1819

💛 - Coveralls
leonardt commented 5 years ago

Re: Is there any easy way to create a wide input circuit and test in fault?

You can just create a magma circuit with whatever width you'd like, e.g.

import magma as m

class WidePassthroughCircuit(m.Circuit):
    IO = ["I", m.In(m.Bits[128]), "O", m.Out(m.Bits[128])]
    @classmethod
    def definition(io):
        io.O <= io.I