Forum Discussion

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

vhdl

i have a vhdl code and a verilog code for a game.can i use both in the same project and how can i couple them? thx.

8 Replies

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

    Yes you can.

    There is a chapter in the user manual about "mixed language synthesis".
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Yes you can.

    There is a chapter in the user manual about "mixed language synthesis".

    --- Quote End ---

    If you want to use the Altera Modelsim edititons for simualtion keep in mind that only single language ( Verilog OR VHDL) is supported..

    Kind regards

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

    --- Quote Start ---

    thx.................i want to use them in quartus II. is ok?

    --- Quote End ---

    Hi,

    then it should be ok.

    Kind regards

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

    thx a lot.....................i have a little question:

    i want to display a variable with display function e.g $display("%d",a); but this don't work. the error is: Error (10170): Verilog HDL syntax error at main.v(4) near text "$display"; expecting an identifier, or "endmodule", or a parallel statement and i close the module
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    thx a lot.....................i have a little question:

    i want to display a variable with display function e.g $display("%d",a); but this don't work. the error is: Error (10170): Verilog HDL syntax error at main.v(4) near text "$display"; expecting an identifier, or "endmodule", or a parallel statement and i close the module

    --- Quote End ---

    Hi,

    you have to keep in mind that some of the Verilog construct are only useable in testbenches e.g. $display. Your verilog files for the design could only use construct,

    which could be translated in HW.

    Kind regards

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

    hallo,

    do you hnow how to take the coordinates from the touchscreen, i have a game and when a put the finger, the touchscreen should be able to draw a rectangle. I have the code for rectangle but i don't now how to take the coordinates.

    thx, tastax.