Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21594 Discussions

How to simulate the FPGA neural network in Altera

Altera_Forum
Honored Contributor II
10,176 Views

I want to simulate the some kind of schematics that work by principle of neural networks. I have Altera Quadrus 11. But when trying create some verilog or vhdl code I see that compilation and simulation items of menu is disabled. Should it due to absence of installed device --such warning is appered when creating the project or I do not entered the license properly. If the issue is in not installed device, which one can I use for my student work, how much space it could take. Can I use the web-edition for this purposes, with or without device? 

And the next set of questions relates to the ocding of logical circuit in Altera or Modelsim (which one could I use-- now I have just Model-Sim free edition). The logic circuit should sort analog signals. The other components of circuits is adders with 2 addings and one substraction, and one with adding of all N signals (or non-binary numbers) the N+2 step functions (comparators of amplitude of signals with some x), and one multiplicator and one integrator. So definitive question is the concept and specific of neural networs with back-propagation method in HDL, and other ones is concerning the converting decimal numbers to binary ones (or it could be allowed to be binary from the start), how implement of multiplication for the big coeficent, how the comparator works in Verilog/VHDL, and the most unsure --about integrating the function. I do not exactly even know what is the role of integrator in logic circle (in this case it is connected with the multiplicator and authors even jjust whol ethe whole structure --inverting integrator --*(-Alpha)). Where I could find such examples in VHDL, but it would be better in Verilog, that I studied something. What structure and size of teh whole programming module should be if N (number of sorted items) is 5-6...
0 Kudos
67 Replies
Altera_Forum
Honored Contributor II
733 Views

Would you provide such introductory tutorial as https://lost-contact.mit.edu/afs/pdc.kth.se/roots/ilse/v0.7/pdc/vol/matlab/r2014b/help/hdlverifier/ug/clock-reset-and-enable-signals.html on clock, reset in general and how it works in such circuits. Are they FPGA, flip-flops? Again I needed to realize integrator in Labview (FPGA) so how would I realize such one in this module as other functions of Labview is the same as standart ones for this scheme.  

Why you integrator is so compound -- T- is the time, Z-?, X(Z)?, Y(Z)? 

What it means "to set everything to 0", which multiplier outputs, which unknown "X"? 

Maybe that are simple questions but this field is rather unknown for me...
0 Kudos
Altera_Forum
Honored Contributor II
733 Views

The questions you are asking me here are very fundamental. You need to have some baseline understanding of theory to know what you are doing: 

 

1) Here is an intro to FPGAs. You can google all of this (and more) information online. http://www.tkt.cs.tut.fi/kurssit/1426/s11/lectures/tkt-1426_lect_5.pdf 

 

2) Everything done in FPGAs is in Z - domain: http://dea.brunel.ac.uk/cmsp/home_saeed_vaseghi/chapter04-z-transform.pdf 

You need to have some understanding of what a transfer function is and its properties, at least in the continuous s - domain. 

 

3) The purpose of a reset is to easily set register states to some initial condition without recompiling the simulation. Essentially you want to define what T(0) is. 

 

You really need to understand these concepts first before jumping into FPGAs, but we all learn as we go.
0 Kudos
Altera_Forum
Honored Contributor II
733 Views

It is about 3 month since the last post -- but I wanted to have real understanding of this whole subject, so next set of questions. So about z-transform -- the resource is not very easygoing. What about testbench -- as it is for simulation and since I have no device -- I understand that I need to have all code for the testbench -- e.g. for the simulation? Or testbench is just a part of code and all other could be got from conversion from Simulink for example? And why testbenchis more or just for VHDL not Verilog? Next question -- I have read that in logical devices the signals could not be permanent so I understand that the RESET is for support of its constantness and clock is some signall that stimulate change in other signalls -- so what is differense between clock signal and other in and out signals as the difference even in description in schematics (arrows and circles). And the one more question -- what book or tutorial I can grasp the computer and schematic basis for vhdl and verilog as I am not from english-speaking and western european counry

0 Kudos
Altera_Forum
Honored Contributor II
733 Views

A simulation is used to simulate "the outside world" so this couldbe switches that the user presses r signals coming from other chips. It can also be used to check the output values of your design. I think Simulink can provide a framework for the testbench, but I am not sure about that.  

 

A reset is used to force the device into a known state, this usualy means clearing the data. The clock is used to limit the changes in data values. If you use memory this memory will require the data to be stable for a set period. By only allowing datachanges on a clock edge the data will become stable afte a while. If your design is correctly done this means all the manipulations are done before the next triggering edge. Why does the data need to be stable? Lets say a 1 is represented by 5 Volts ans a 0 by 0Vm(I don't think these are the values used in an FPGA). If you change from one to the other this takes time (slew rate). So what value should be assigned to a 2.5 volt signal? In practice ranges are defined so a 1 is everything between 5 and 3 volt and a 0 is assigned to everything between 2 and 0. But you will always have that small undefined gap. A clock is used to prevent the value from bei g mid-transition when read by a memory element. 

 

As for information on VHDL or Verilog, search the forum for books. There are enouh threads that provide infor ation on good ones. One of them: http://www.alteraforum.com/forum/showthread.php?t=41998&highlight=books+vhdl 

 

i don't know any good books in a language other than english. 

(http://www.alteraforum.com/forum/showthread.php?t=41998&highlight=books+vhdl)
0 Kudos
Altera_Forum
Honored Contributor II
733 Views

I need exactly "english" books but not for vhdl or verilog as there are a lot of them but on hardware for this languages. I have basic understanding of this from "shematechnics" in russian-speaking literature but it differetiate from the english terminology and practice. So I need books (about such of 200 pages) with brief but enough explanations, without to be too inclusive but also not too superficial

0 Kudos
Reply