Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Neuron implementation in VHDL (code attached)

Hi all.I am just learning VHDL and as an exercise, I am trying to model a neuron in VHDL (attached the code). The neuron has three inputs, three weights and one threshold value (as entity inputs).The neuron is selected through the enableIN and if it is set as '1' ,the neuron reads the inputs, weights and threshold.After that, I created three process for calculate a product between inputs and weights, a sum of these products and at the end a sigmoid function of that summation.What I would like to know is if I wrote these data-flow and behavioral models inside the entity as It is expected to work.The objective is the output having the result of the function when enableOUT is set '1'.I appreciate any help, thanks.

27 Replies