Qt compatibility with VHDL source codes??
-
wrote on 28 Aug 2013, 12:43 last edited by
Can Qt read a Hardware description Language??
-
Hi,
No it can't. Qt is a C++ library, but C++ and VHDL are unrelated languages.
However, after you have compiled your VHDL bit file, you can use Qt and C++ to read/write your FPGA pins.
-
wrote on 28 Aug 2013, 14:33 last edited by
Hello,
I have downloaded VHDL bit files on FPGA.. But Now I need to read from a VHDL file only the signals and Extract them to a XML. I believe the in and out signals can be read and an XML can be created...Do u think this would work?
-
Ah, so you want a VHDL code parser and an XML writer.
Qt has an "XML writer":http://qt-project.org/doc/qt-5.1/qtcore/qxmlstreamwriter.html, but it doesn't have a VHDL parser. You'll need to find a 3rd-party library that parses VHDL, or you can write your own parser.
Can I ask:
What programming experience do you have?
What do you plan to do with the XML data?
-
wrote on 28 Aug 2013, 15:10 last edited by
- I am a beginner for a Qt/C++ Platform. But eager to explore..
- I want the qt to read the XML data and create a structure.
-
wrote on 29 Aug 2013, 08:49 last edited by
Hello!!!!
-
Please allow at least 24 to 72 hours before bumping your own thread. Not all forum users live in the same timezone as you or have an answer to your question.
That said, you will need to have a look at the XML module, QFile for reading, QString and maybe QRegExp for parsing your VHDL text file.
Looking at Qt's demos and example is also always a good idea.
-
wrote on 29 Aug 2013, 09:54 last edited by
O I am so sorry about it!! I expected that You'll had not noticed my thread.
Thank You so Much!!
-
If you are new to C++, I recommend learning from examples and tutorials, such as:
- Widget tutorial: http://qt-project.org/doc/qt-5.1/qtwidgets/widgets-tutorial.html
- Regex example: http://qt-project.org/doc/qt-5.1/qtwidgets/tools-regexp.html
When you are comfortable with C++, here is a more advanced example for writing XML files: http://qt-project.org/doc/qt-5.1/qtxml/streambookmarks.html
What other programming languages have you used? Are you experienced with VHDL?
[quote author="Pallu" date="1377702630"]2. I want the qt to read the XML data and create a structure.[/quote]Sorry, I don't quite understand. Can you explain further?
-
wrote on 29 Aug 2013, 12:15 last edited by
I have used C, VHDL & Verilog and C++.
-
[quote author="Pallu" date="1377702630"]2. I want the qt to read the XML data and create a structure.[/quote]Sorry, I don't quite understand. Can you explain further?
-
wrote on 24 Dec 2018, 18:32 last edited by
@Pallu said in Qt compatibility with VHDL source codes??:
Can Qt read a Hardware description Language??
There is now VerilogCreator, a Qt Creator plugin which turns the latter into a Verilog IDE. See https://github.com/rochus-keller/VerilogCreator/blob/master/README.md. It includes a full Verilog 05 parser.
-
@Pallu said in Qt compatibility with VHDL source codes??:
Can Qt read a Hardware description Language??
There is now VerilogCreator, a Qt Creator plugin which turns the latter into a Verilog IDE. See https://github.com/rochus-keller/VerilogCreator/blob/master/README.md. It includes a full Verilog 05 parser.
@Rochus Amazing!
You should probably add your plugin to https://wiki.qt.io/Qt_Creator_Plug-in_Gallery to give it more attention ;)
-
@Rochus Amazing!
You should probably add your plugin to https://wiki.qt.io/Qt_Creator_Plug-in_Gallery to give it more attention ;)