Forum Discussion

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

Urgent VHDL Comparator

Can some one please tell me whats wrong with my code (check attached document). I'm designing a comparator to compare two input bit (A and B). But input B is supposed to be a reference with a fixed value of 8192 (10000000000000). Pls attached a code to comment (Structural). thank you

15 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    k... but all named pins (2-input & 1-output) are assigned manually by me. the other 744 assignable pins were assigned randomly and that affects my output. How do i solve this pls?

    --- Quote Start ---

    The clue is probably in the warning. With incomplete io assignments, some pins will be assigned randomly.

    --- Quote End ---

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    To assign your input and output to FPGA pins :

    Menu Tools>"pin planer" or "assignment editor"
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    But really, i know about that and i did assigned all the pins in simple ANDgate. So i dont know which other pin is left unassigned. Could it be because of the top level file? cos i have the actual AND gate file then i top level file that created AND as a component.

    --- Quote Start ---

    To assign your input and output to FPGA pins :

    Menu Tools>"pin planer" or "assignment editor"

    --- Quote End ---

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Have you REALLY assigned inputs and outputs of your top level to your FPGA pins ?

    Could you post the interesting parts of Quartus compilation reports ?

    --- Quote Start ---

    but all named pins (2-input & 1-output) are assigned manually by me. the other 744 assignable pins were assigned randomly and that affects my output. How do i solve this pls?

    --- Quote End ---

    Are you sure about the pins you assign ?

    I don't understand what you want to mean with the second sentence because it is trivial : if you assign correctly your useful pins, you don't mind about the others (of course if there isn't any conflict)

    You can set unused pins as "input tri-stated" or "output driving ground" (be careful about conflicts) in Quartus menu > ....
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I dont really understand anything of what you've posted, as I cannot find any code with input1, input2 and output. I also do understand why you've posted a picture of some code you havent talked about. But the error is that you've put the assignment before the "begin" part of the process, but it doesnt really want to go into a process at all.