I'm trying to port the following C code to VHDL using 1164 and numeric_std:
int L = minR*8 - 128;
int R = minL*8 - 128;
newspeed = R + L;
newturnrate = R - L;
I can do the multiplications and subtractions. I run into problems when L and R are both negative numbers and I try to add them:
C...
In this part of my state machine for controlling a UART. I am expecting my count variable to well... the code is pretty simple:
when stReceive =>
rdSig <= '0';
wrSig <= '0';
-- If new data is available for reading
if (rdaSig = '1') then
-- Later want to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.