05-28-2015 06:40 PM
I am now evaluating the SDSoc on zc702. I have read a lot of user guide, and followed some experiment. I encoutered a problem, creating pin and assign its location. May I create a parameter on main function, which are the pins on FPGA? and also assign their pin locations? Thanks
06-08-2015 03:35 PM
06-10-2015 09:17 PM
bwiec, thank you for your reply.
Could you teach how to create pin in the design (ie the level of coding, 'C'-main program)
I do not need change the location, as long as the pin name can be mapped to my design, ie main function of C. Could you please share the method. Thanks a lot
06-10-2015 09:56 PM
06-11-2015 10:16 AM - edited 06-11-2015 10:17 AM
Please refer to the tutorial in Chapter 5 of UG1146. The pf_axis example (in the SDSoC install) walks you through how to create a custom C-callable IP which connects to pins on the FPGA to the outside world. It then integrates this IP into a hardware platform which you use when creating your software project (note that the actual pin location will be locked down to the hardware platform. So if you do need to change its location, you would need to change the hardware platform.).
Essentially, you create a custom IP with the proper interfaces marked for SDSoC utilization. From there, you create software stubs which implement reading/writing of the IP via the interfaces using the appropriate data movers. Then you can call those functions from software to pass data to/from the IP and finally to the FPGA pin to the outside world.
Is this what you mean?