Hello! It's Topu.
Recently, I have been able to use features of Quartus® II that I have never used before, and I find them even more useful.
This time, I would like to introduce you to the convenience and usage of IP from among them, along with my actual experiences.
(I couldn't use it well and experienced setbacks...)
1. What is IP?
Simply put, it is a design that Altera has prepared in advance.
Wrinkled article also has a description about IP, so please take a look.
The more I use IP, the more I can reduce design man-hours, so I really wanted to be able to use it.
Therefore, I decided to generate a simple IP first, and generated an IP called ALTSQRT from the IP Catalog.
(more on what this IP does later...)
2. How to use IP
1. Select the IP you want to generate from the Quartus IP Catalog (Tools menu) and double-click or press the Add button. (Figure 1)
2. Specify the folder destination to generate and the file name of the IP at the end (sqrt this time), and select the type of language to generate (Verilog this time) (Fig. 2)
3. The selected IP screen (wizard) will appear.
Using this wizard, you can easily parameterize an IP that meets your specifications. (Fig.3)
For more information on this IP, click the Documentation button on the top right to view the User Guide.
The function of this IP called ALTSQRT is to "output the squared value of the input value".
Click Finish when the settings are complete.
IP generation is complete.
I wanted to incorporate the created IP into my design, so when I checked the folder specified as the IP generation destination, sqrt.v was generated! !
at this time i
"The .v file describes a function that outputs the squared value of the input value."
I thought, and wondered what kind of description was made.
So I want to see the contents of the file,
I specified sqrt.v from File menu ⇒ Open of Quartus II and clicked [Open (O)].
Then ……,
that? Another wizard? ? ? (Fig.4)
This will return to 3 again and repeat the same thing.
I was a little surprised because I expected to see the design by language.
I gave up looking at the code of the design and registered the created design file in the project. (Fig.5)
I was looking at the sqrt.v file registered in Project Navigator (Files)
I had the urge to see the contents of the file again, so I double-clicked on it.
Then...
A code appeared! (Fig.8)
My thoughts may have been conveyed.
…But actually, (I learned it later from my seniors)
After specifying the sqrt.v file with Open (File menu) in Figure 4
If you switch the "Open as option" from "Auto" to "Text" and click the [Open (O)] button, sqrt.v will open with a text editor.
Alas, I was just being ignorant. It's embarrassing...
Scrolling down the code, I also see the HDL code that does the module declaration, port connections, and instantiation.
Register sqrt.v as the top design of the project and compile.
Use a simulation to check whether the circuit meets the specifications.
Looking at the waveform of the simulation results
Since the square root of the input value (radical) appears as the output value (q), we can see that we have generated a design that meets our specifications. (Fig.7)
* The value of radical – q 2 is calculated for the remainder.
Summary
・ By using IP, you can easily create designs.