In the last article we explained how we can make circuits such as counters and registers with digital logic, however, you will all be asking yourselves: "How can we make circuits such as counters and registers with digital logic?how we can implement our circuits in physical devices? today we will explain it to you.
First of all we need some elements:
– CPLD device programmer. There are lots of different devices that depend on the level of knowledge we have. To start with, we can use a board like this one. It is important to be well informed about our choice as the price is usually high. We can also create our own programmer.
– Wiring necessary to connect the board to our computer.
– Programa Quartus II v.9.0.
It is also important to say that in this article we will be programming an Altera memory of the family MAX7000S and whose name is EPM7064SLC44-10.
That said, we can begin to explain the process.
The first thing to do is to open the programme and go to File/New Project Wizard. After pressing once Next enter the path where we are going to create our project and the name. The next thing to do is to click again on Next until we reach the bottom image. Here we must select our memory EPM7064SLC44-10.
We continue to press Next until you get to the last screen and click on Finish. Once this is done, we can start to create our schematic that we will insert in the chip. To do so, click on File/New/Block Diagram/Schematic File.
In the window that will appear we must insert our design. The buttons we will use are the ones highlighted in red. The top one will show us the available logic gates and elements and the bottom one will allow us to make the connections.
Once the circuit has been drawn, click on the button Play (Start) icon in the toolbar. This will start the compilation of the circuit. Once finished, it is time to assign the inputs and outputs of the circuit to the pins of our chip. This is done by clicking on the button highlighted in red. In the window that appears, follow the steps below:
The next step is to create a wave file that provides stimuli to the inputs of the circuit. To do this we go to File/New/Vector Waveform File. In this window, right-click on the option Insert Node or Bus and through Node Finder/List We choose our inputs and outputs to appear in the list. Now we only need to enter values by right-clicking on the Value. In the end we will get something in this style:
To finish testing the project we went to Processing/Generate Functional Simulation Netlist and then by Processing/Simulator Tool we carried out the circuit test.
Now we only have to apply the design to our chip. To do this we connect our board to the computer in the way the manufacturer informs us and go to Tools/Programmer. In this window we choose Hardware Setup and add our device. Finally we go back to the previous window and, selecting Program/Configure y Verifyclick on Start. Our chip will then be fully configured and can be assembled by making the necessary pin connections.
Remember that, as always, you can ask any questions you may have through our forum.