Forum Discussion
Altera_Forum
Honored Contributor
16 years agovhdl
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
Honored 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. - Altera_Forum
Honored Contributor
thx. have a great day
- Altera_Forum
Honored 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
Honored 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
Honored 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
Honored Contributor
thx.................i want to use them in quartus II. is ok?
- Altera_Forum
Honored 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
Honored Contributor
Yes you can.
There is a chapter in the user manual about "mixed language synthesis".