FlyingDutch
Advanced Member level 1
- Joined
- Dec 16, 2017
- Messages
- 458
- Helped
- 45
- Reputation
- 92
- Reaction score
- 55
- Trophy points
- 28
- Location
- Bydgoszcz - Poland
- Activity points
- 5,029
Hello @MarkPh,If you want to do it very fast you can use Instant SoC.
You simply write a few lines of C++ code and the tool generates the VHDL code.
There are ready UART classes etc.
Here you can see an example using UART.
Hi @FlyingDutch,Hello @MarkPh,
today I visited "Instant SoC" websit and i must admit that it looks interestingI would like to try implement "instant SoC" ( i tried few times implement various RiscV Ipcores but it wasn't easy). Did you tried implement this "Instant Soc"? If yes on which development board and if you have any hints they would be helpful for me.
Thanks in advance
Yes i do it is nexys a7 digilent boardHello,
maybe I should ask that earlier: "Qamar do you have access to FPGA development Board?". For your project the final phase is real working hardware device, or just only simulation?
Regards
do an internet search for "verilog tutorial". Many thousands of hits. Even a lot of videos. Just use it.1.how to write logic in verilog
What does "continously" mean? Without the tiniest gap?2. Can Fpga continously receive input from computer
Hello Quamar
you can do it in process (Verilog). Periodically read Rx from serial in process (you be able do it every period of time using simple counter) and then steer Tx respectively to information red from serial Rx.
Best egards
--- Updated ---
Hello Qmar,
I send you in second post of this thread link with explanation how to program serial port from "Visual Studio" (in C#). Based on this code I wrote full application which is periodically exchanging information (in two direction), This application (written in C#) is connected with embedded system based on ARM CortexM3 (STM32F103GT6 microcontroller). It looks like this:
1) The screen with serial port parameters:
2) Second screen with basic embedded system parameters (send to PC from board with STM32F103):
These parameters are sending periodicaly from microcontroller to C# application on PC.
3) Extended parameters shown in tabular layout (also sens periodically):
Everything you can write basing on code to whom I send you link in post number two. The hardware part is FT232 chip also described in post two.
The one difference is that on the second side is FPGA not microcontroller. So you have to program comunication between C# application (on PC) and FPGA board (in Verilog). The hint: I sent the message (order) using serial port informing FPGA that it have to send information from FPGA to PC applicastion. So for sending different data from FPGA to PC hou have to have several different orders. Write what is not understandable?
In C# application it is not difficult to represend data recrived from emmbedded system in graphical for like this (example from my application):
Best Regards
Hello Quamar
you can do it in process (Verilog). Periodically read Rx from serial in process (you be able do it every period of time using simple counter) and then steer Tx respectively to information red from serial Rx.
Best egards
--- Updated ---
Hello Qmar,
I send you in second post of this thread link with explanation how to program serial port from "Visual Studio" (in C#). Based on this code I wrote full application which is periodically exchanging information (in two direction), This application (written in C#) is connected with embedded system based on ARM CortexM3 (STM32F103GT6 microcontroller). It looks like this:
1) The screen with serial port parameters:
View attachment 166417
2) Second screen with basic embedded system parameters (send to PC from board with STM32F103):
View attachment 166418
These parameters are sending periodicaly from microcontroller to C# application on PC.
3) Extended parameters shown in tabular layout (also sens periodically):
View attachment 166419
Everything you can write basing on code to whom I send you link in post number two. The hardware part is FT232 chip also described in post two.
The one difference is that on the second side is FPGA not microcontroller. So you have to program comunication between C# application (on PC) and FPGA board (in Verilog). The hint: I sent the message (order) using serial port informing FPGA that it have to send information from FPGA to PC applicastion. So for sending different data from FPGA to PC hou have to have several different orders. Write what is not understandable?
In C# application it is not difficult to represend data recrived from emmbedded system in graphical for like this (example from my application):
View attachment 166420
Best Regards
--- Updated ---
I forget: in order to easy programm comunication on serial port on FPGA using a Soft-CPU (for example Microblaze - IP Core from Xiling) is worth attention.
please kind tell me which IDE you are using
let me go to step b step
1. make a verilog code and burn it on FPGA through UART
2. code should include things such that for example if letter "x" is received on its receive port it should send let's say 00011 to to its transmission port and further by using rs232 it can be send to other computer and result is shown on tara term
3. make coding behind buttons in the following windows form (GUI) such that if something is selected and sent on serial port FPGA should receive it and act accordingly
Next step is to implement UART receiver and transmitter on FPGA, e.g. referring to the first link in post #31, or any other example design obtained from the internet.
Thank you for your advice kindly give me some links for the verilog code to implement itNext step is to implement UART receiver and transmitter on FPGA, e.g. referring to the first link in post #31, or any other example design obtained from the internet.
yes exactly the same technique is on my mind but not able to find any verilog code relatedYes exactly as @FvM said you have to implement UART on FPGA board and in loop read one byte (it is one full frame of UART transmission - usually 8-bit) on UART Rx and retransmit this byte on UART Tx (connection to Tera-Term terminal).
Regards
So has your school never introduced Verilog in their curriculum in previous classes? By the time you get to your final year if they expect you to do a project with an FPGA then you should have at least taken a class where they teach you digital design and Verilog.I'm new to FPGA i'm a undergraduate student i'm into my final year project where i have to interface my GUI with the FPGA or please just tell me how to i use my Gui which is made in c sharp using visual studio how i can program GUI that i can transmit anything and should able to recieve it on FPGA
If you don't have any Verilog knowledge (because your school sucks) then use Xilinx's IP integrator and make a Microblaze system with two uarts and a microblaze, then you can write software to read one uart and transmit out the second uart and won't have to write any Verilog.Thank you for your advice kindly give me some links for the verilog code to implement it
--- Updated ---
yes exactly the same technique is on my mind but not able to find any verilog code related
please refer me to some codeSo has your school never introduced Verilog in their curriculum in previous classes? By the time you get to your final year if they expect you to do a project with an FPGA then you should have at least taken a class where they teach you digital design and Verilog.
If you don't have any Verilog knowledge (because your school sucks) then use Xilinx's IP integrator and make a Microblaze system with two uarts and a microblaze, then you can write software to read one uart and transmit out the second uart and won't have to write any Verilog.
If you need Verilog code for a UART then opencores has a uart IP core, but since it appears you don't know any Verilog it's pointless to use that core as you would have to know enough Verilog to instantiate two uarts in a top-level file and write some code to control them.
For something this simple I would pull a uart from opencores and use an FSM to read the RX uart and write the Rx'd bytes to a FIFO on the read side of the FIFO another FSM reads the FIFO and sends it to the TX uart. Shouldn't take very long to write something like that. Depending on the uart core you might be able to avoid using the FIFO entirely and directly control both the RX and TX uarts from the same FSM.
Did you even try using a search engine and type "opencores" into it? When I try that the first link is the opencores website, which as I said has a UART core on it.please refer me to some code
first of all you are giving me help in project, not a life so please be kind in choosing your words in an open thread. Your words reflect yourself and next thing most of my work i have done myself. Fpga just taking input and giving output so plzz don't be judgy without knowing and if you don't want to help please don't humiliate others by typing some sentences. Thank youDid you even try using a search engine and type "opencores" into it? When I try that the first link is the opencores website, which as I said has a UART core on it.
Always asking for code makes me not want to be helpful. It shows a lack of initiative.
i was asking for code because i have tried UArt core from opencores but not able to implement itfirst of all you are giving me help in project, not a life so please be kind in choosing your words in an open thread. Your words reflect yourself and next thing most of my work i have done myself Fpga just taking input and giving output so plzz don't be judgy without knowing and if you don't want to help please don't humilate others by typing some sentences. Thank you
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?