hackneyed

Interfacing with VHDL circuit with ZPUino

2 posts in this topic

Dear Altruists,

I'm new to Papilio Pro FPGA. I designed my  circuit with VHDL and also synthesized it, and it is ready to be loaded in the papilio pro fpga. My circuits interface has an input of 64 bits and output of 1 bit. I need only to send this 64 bit data from my pc to FPGA and receive the output of 1 bit ( please check the uploaded circuit interface). I already watched most of the learning videos. I have already contacted Mr. Alvie and thanks to him he reply with an answer, but it was a little difficult for me to understand as I am new to FPGA.  His answer was that I should connect my circuits to one of wishbone ZPUino slots, and use ZPUino to interface with the USB/serial using software moving data to and form my circuits. However, the things that I don't understand are that:

 

1. Should i connect my circuits to wishbone bridge  and then connect my circuits to the wishbone slots as you did here ( http://gadgetfactory.net/learn/2015/05/14/designlab-libraries-make-a-wishbone-library-2/). If  the answer yes, should I connect the the both input and output to the wishbone bridge. If answer no, then should I interface my circuits directly to the ZPUino wishbone slots. 

2. If I connect my circuits to ZPUino wishbone slots. The input 64 bits and the output 1 bit should be connected to what to the slots or Paplilio Pro Pins. 

3.  Mr. Jack illustrate in the learning site videos that ZPUino should be loaded to the SPI not to the FPGA Spartan6. So, If I am going to interface my design to ZPUino how can I load the circuits to the FPGA. 

4. If I am going to make an interface of the UART I think I just need to follow as same as Mr. Jack did in this video( http://gadgetfactory.net/learn/2013/11/15/papilio-schematic-library-10-serial-ports/ )

 

Please forgive my shortcomings. I am new to these things. Any help will be highly appreciated. 

Thanks

 

circuits.jpg

Share this post


Link to post
Share on other sites

Hello and sorry for the slow response,

Yes, you will want to follow this tutorial:

http://gadgetfactory.net/learn/2015/05/14/designlab-libraries-make-a-wishbone-library-2/

You will be making 1 Wishbone peripheral but in the part where you setup the Wishbone registers you will want to use two of the registers for your 64 bit input. So in the Wishbone_to_Registers_x10 symbol you will use register0_out(31:0) and register1_out(31:0) to capture your 64 bit input into your own VHDL code. In your sketch you will write a 64bit value into the two 32 bit wishbone registers (0 and 1) which will then be available to your code at the register0_out(31:0) and register1_out(31:0) ports. 

Hope that helps,

Jack

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now