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

Possible documentation improvements #2

Open
sherylll opened this issue Oct 31, 2018 · 9 comments
Open

Possible documentation improvements #2

sherylll opened this issue Oct 31, 2018 · 9 comments

Comments

@sherylll
Copy link

I think it should be pointed out that the library only works with python3, in my case I had to use sudo python3 pyficlibtest.py

Also the ring_8bit.bin file does not exist in the repository. Maybe this could be added?

@nyacom
Copy link
Collaborator

nyacom commented Oct 31, 2018 via email

@sherylll
Copy link
Author

Hi Nyacom-san,

I have been trying out some of the APIs, and was able to program the bin files, for example

fic.gpio_open()
bit=open("lenetio.bin","rb").read()
fic.prog_init()
fic.prog_sm16(bit,1)

but when I try to use wb4, hls_start4 after the programming of the configuration, I got a timeout

ERROR: Communication timeout at ficlib2.c fic_comm_wait_fack_down 171
ERROR: fic_comm_wait_fack_down failed at ficlib2.c fic_comm_send4 279

Could you provide more information about how to use those functions?
Thanks!

@nyacom
Copy link
Collaborator

nyacom commented Oct 31, 2018 via email

@sherylll
Copy link
Author

sherylll commented Nov 1, 2018

I discovered that I must use 'fic.prog_sm8(bit,0)' to program, instead of 'prog_sm16'

I'll try to make some documentation about my trial and errors... And yes I think there should be some self-contained examples (HLS module + python script) demonstrating how to use the APIs.

@sherylll
Copy link
Author

sherylll commented Nov 1, 2018

As of now there is no APIs for setting the tables, right? Is it on the radar?

@nyacom
Copy link
Collaborator

nyacom commented Nov 1, 2018 via email

@nyacom
Copy link
Collaborator

nyacom commented Nov 1, 2018 via email

@sherylll
Copy link
Author

sherylll commented Nov 6, 2018

Hi Nyacom-san,

if I understood it right, hls_send4 and hls_receive4 are equivalents of write_byte and read_byte of the C library, correct?

How could I use read_cont and read_fin (or how should I go about programming them?)

FYI I have made a hello world example here: https://github.com/hungalab/FiC-first-example and I am trying to get the Python script work...

Thanks!

@nyacom
Copy link
Collaborator

nyacom commented Nov 6, 2018 via email

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