Relative Content

Tag Archive for vhdl

VHDL if statement precedence

So, this code was given to me to fix, and it made me wonder how it actually should work. The key pitfall here is multiple IF statements in a process that sets/clears the same output. So which one “wins”?

Binary cross entropy

I have a question about how write a function cross entropy binary in vhdl the last is
L= -(y*log (ypred)+(1-y)*log(1-ypred) the problem is how can write a log in VHDL , sorry about my English thanks

Building multiplier with low value bits in vhdl

I want to make a 16-bit multiplier. The way it works is that I take two 32-bit numbers from the input and multiply them with the least valuable 16 bits and give them to the output, and I also use a 32-bit adder. In every clock, the multiplier shifts right and the multiplicand shifts left, and after 16 clocks, the output is ready, but the output is always zero.
Of course, the 32-bit adder works correctly.