-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
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
You need add your account to 'gpio' group else you need sudo.
Also the ring_8bit.bin [1] file does not exist in the repository.
Maybe this could be added?
I don't think this is good idea.
…--
On 2018-10-31 11:13, Yuxi Sun wrote:
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 [1] file does not exist in the repository.
Maybe this could be added?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [2], or mute the
thread [3].
Links:
------
[1]
https://github.com/hungalab/libfic2/blob/9373ef9bb5b88f4e96a01bad8514bf4c19bd4db0/pyficlibtest.py#L25
[2] #2
[3]
https://github.com/notifications/unsubscribe-auth/AM4Yvvjwgbaa3PGBdB3epQ9PXpxjv1wJks5uqQc7gaJpZM4YDNtC
--
Kazuei HIRONAKA(nyacom) <[email protected]>
|
Hi Nyacom-san, I have been trying out some of the APIs, and was able to program the bin files, for example
but when I try to use
Could you provide more information about how to use those functions? |
but when I try to use wb4, hls_start4 after the programming of the
configuration, I got a timeout
Well, you need reset/start of HLS module before communicate because HLS
part is not running when the FPGA configured.
then if you want to communicate HLS part, you should use
hls_send4/hls_receive4.
wb4/rb4 is a API for communicate FPGA register itself. (not for HLS)
(Personally, I don't like this design, but Hunga-san designed like
this.. )
In addition, i have not well tested for hls_send4/hls_receive4 due to
time restrictions.
so I think the APIs should be need some fixes. (can you help me?)
I hope you would make some little HLS module that just write and reply
to/from 4bit HLS I/F for testing.
How do you think?
…--
On 2018-10-31 12:39, Yuxi Sun wrote:
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!
--
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [1], or mute the
thread [2].
Links:
------
[1] #2 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AM4YvkjIbUAnqVufuOJ_xBDSvw_53pfUks5uqRt7gaJpZM4YDNtC
--
Kazuei HIRONAKA(nyacom) <[email protected]>
|
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. |
As of now there is no APIs for setting the tables, right? Is it on the radar? |
I discovered that I must use 'fic.prog_sm8(bit,0)' to program, instead
of 'prog_sm16'
Oh yes.
It is depends what did you generate *.bin files with according program
modes in the vivado.
so if you are using SM 8bit prog mode *.bin file, you should use
prog_sm8 instead of _sm16.
…--
On 2018-11-01 09:07, Yuxi Sun wrote:
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.
--
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [1], or mute the
thread [2].
Links:
------
[1] #2 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AM4YvgO3isPaDpliGkrSKqxpm9GxK_l6ks5uqjtQgaJpZM4YDNtC
--
Kazuei HIRONAKA(nyacom) <[email protected]>
|
As of now there is no APIs for setting the tables, right? Is it on the
radar?
It is already implemented.
Use _wb8 or _wb4 for table register address to set the table.
Anyway, I also implemented table can be set via web GUI. (not deployed
yet..)
Cheers,
…--
On 2018-11-01 10:36, Yuxi Sun wrote:
As of now there is no APIs for setting the tables, right? Is it on the
radar?
--
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [1], or mute the
thread [2].
Links:
------
[1] #2 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AM4Yvi5tMAOnn6oeuVwH4jmyLmYCkN65ks5uqlANgaJpZM4YDNtC
--
Kazuei HIRONAKA(nyacom) <[email protected]>
|
Hi Nyacom-san, if I understood it right, How could I use 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! |
if I understood it right, hls_send4 and hls_receive4 are equivalents
of write_byte and read_byte of the C library, correct?
Nope.
write_byte and read_byte in C library (are you mentioned about hunga's
original C library?) are equivalents of wb8 or rb8 in ficlib2.
How could I use read_cont and read_fin (or how should I go about
programming them?)
As you can see hld_send4 and hls_receive4 has data and its size
arguments.
these functions are will finalize the communication at the end hence you
no need to do read_fin/cont.
BTW, I did not well tested for hls_receive4. Prolly I need more
investigation about this.
I am appreciated if you are testing about this..
Cheers,
…--
On 2018-11-06 15:30, Yuxi Sun wrote:
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!
--
You are receiving this because you commented.
Reply to this email directly, view it on GitHub [1], or mute the
thread [2].
Links:
------
[1] #2 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AM4YvsYQ-4YONchSRjwkNYUpilceEef5ks5usSxwgaJpZM4YDNtC
--
Kazuei HIRONAKA(nyacom) <[email protected]>
|
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?
The text was updated successfully, but these errors were encountered: