Giter Site home page Giter Site logo

loam's People

Contributors

adamdai avatar leonardt avatar phanrahan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

loam's Issues

loam package name in use on PYPI

The package name loam is currently in use on PYPI, so we won't be able to register the package https://pypi.org/project/loam/ for pip. We could explore a couple options here, such as appending a .py or distributing the package with magma/mantle (i.e. pip install magma installs mantle and loam). Or we look for an alternative name

Setting individual pins in the same bank to different directionality doesn't work

Not sure if this is a bug or by design, but the following code doesn't work.

icestick = IceStick()
icestick.Clock.on()
for i in range(0, 4):
    icestick.J1[i].input().on()
for i in range(4, 8):
    icestick.J1[i].output().on()

In this case it sets all the pins on J1 to be inputs, rather than having half of them acting as outputs. If this is a requirement based on how the hardware actually works, we should raise an Error that let's the user know that this isn't allowed. Otherwise, we should make this work.

@phanrahan can you give me any insight into whether this is a bug or by design? I can take a stab at adding the error message or fixing the bug (so I can learn a little more about loam).

Issue with bake tests on travis

6.27s$ ./bake
echo \$DYLD_LIBRARY_PATH
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick lut4
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick pll100
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick ramb16
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick adc1
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick eq4
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick counter4
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick arbiter4
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick dff
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick lfsr8
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick lhca8
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick abuf
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick lut1
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick mux2
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick gatedreg4
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick rom1
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b icestick cascadedring
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b goboard blink
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1
magma -b hx8kboard blink
strace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Operation not permitted
strace: test_ptrace_setoptions_followfork: unexpected exit status 1
fabricate: 'strace' exited with status 1

LED numbering on HX8K board

On the physical Lattice ice40-HX8K board, the LEDs are numbered on the silkscreen D9 to D2 from left to right. In loam, these LEDs correspond to D1 thru D8. Not sure if we want to change around the numbering in loam to match the numbering the board.

Setup instructions are broken in README

There is no "requirements.txt" in the loam directory.
pytest tests also fails.

I notice that travis script is just calling './scripts/run_tests.sh'. What is the preferred testing mechanism for Loam?

Make Loam Circuits Match Magma Circuits API

Currently, you can't get the string representation of some instances of loam boards. The magma repr function calls IO of the metaclass, and the loam board doesn't have an IO property.

>>> from loam.boards.icestick import IceStick
import lattice ice40
>>> icestick = IceStick()
>>> type(icestick)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/durst/dev/W17-8/magma/magma/circuit.py", line 108, in __repr__
    args = str(cls.IO)
AttributeError: type object 'IceStick' has no attribute 'IO'
>>>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.