Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIO0/PIO2 (HDR1/HDR2) access on icestick? #25

Open
harwoodr opened this issue Jan 13, 2016 · 3 comments
Open

PIO0/PIO2 (HDR1/HDR2) access on icestick? #25

harwoodr opened this issue Jan 13, 2016 · 3 comments

Comments

@harwoodr
Copy link

I see in j1a.v that the pin headers on the board are defined... with addresses defined under "IO PORTS" but I can't seem to set them:

255 $0020 io!
ok
$0020 io@ .
255 ok
255 $0010 io!
ok
$0010 io@ .
27 ok

...am I missing something?

@RGD2
Copy link
Contributor

RGD2 commented Jan 15, 2016

Confirmed, mine does the same thing.
I don't think you're missing a step.

Hmm...

@RGD2
Copy link
Contributor

RGD2 commented Jan 15, 2016

I think it's a timing issue of some sort... there's a kludgy workaround:

>-1 -1 $10 io! drop
  ok
>$10 io@ .
  255  ok

I hit the same behaviour with the j1a8k (with the leds on the hx8k breakout board), but it seemed to go away when I changed the LEDS to use a byte-wide ioport module instead of outpins .

I think it's something that merits an issue raised on cliffordwolf/icestorm - although he seems to be hard at work on icetime already, and we probably won't be able to figure out this issue until he's got it working well enough for us to see how the timing paths differ between the led's and the io ports.

@RGD2
Copy link
Contributor

RGD2 commented Feb 9, 2016

Seems fixed now with YosysHQ/yosys@840a6dc, YosysHQ/arachne-pnr@1a4fdf9, YosysHQ/icestorm@b49d2d3, ef9aaa6.

sudo python shell.py -h /dev/ttyUSB1 -p ../common/
Contacting... established
Loaded 207 words
>-1 leds
  ok
>0 leds
  ok
>-1 $20 io!
  ok
>$20 io@ .
 255  ok
>-1 $10 io!
  ok
>$10 io@ .
 255  ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants