Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. clarksa

    Signed numbers: Adding 2 negative numbers

    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...
  2. clarksa

    what's wrong with this interger counter?

    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...

Part and Inventory Search

Back
Top