nvdla / hw

RTL, Cmodel, and testbench for NVDLA
Other
1.68k stars 561 forks source link

how to use libnvdla_cmod.so #75

Closed wuchunxuan closed 6 years ago

wuchunxuan commented 6 years ago

hi all: i can build c mode, but i donot know how to use libnvdla_cmod.so can you have example to use libnvdla_cmod.so

jwise commented 6 years ago

We're working on a Virtual Platform release that will have an example of integrating it into Qbox. The ETA on that is a few days to a week.

wuchunxuan commented 6 years ago

OK, i wait it

jwise commented 6 years ago

The libnvdla_cmod.so exposes a SystemC module, "NV_nvdla". In the recently release Virtual Platform tree we have an example of instantiating one, and connecting it to other SystemC buses:

https://github.com/nvdla/vp/blob/master/models/nvdla/src/nvdla_top.cpp

This is a relatively complicated example; unfortunately, we don't have something simpler right now, but hopefully this will get you started. I'm going to close this issue for now, but please feel free to reopen it if you have further questions!

wuchunxuan commented 6 years ago

i think this is too hard, why have no simple example with 'main'

wuchunxuan commented 6 years ago

Hi Subhash -- yesterday, we released the software stack to run on top of NVDLA, along with the Virtual Platform, which should provide some examples and an environment in which you can do further development. Have a look at that? where it is??

sun3388 commented 6 years ago

Please refer to this doc: http://nvdla.org/vp.html, it has virtual platform and sw setup info, and you don't really care how to leverage the single so lib, you can boot OS and run SW tests directly on this virtual platform following the steps in the doc. related repo : https://github.com/nvdla/vp https://github.com/nvdla/sw

ShoneAlbert commented 6 years ago

I want to ask how to use the SW I have installed the Qbox .