Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

Question on basic coding

Altera_Forum
Honored Contributor II
1,577 Views

Hi I'm a newbie on this forum and just entered into Verilog HDL recently.  

 

As a beginner i am quite confused about how pin assignments work. If the user imports DE2 pin assignments.csv directly from Quartus database, is he/she NECESSARY to use SW,LEDG,LEDR,etc to write the Verilog code? I found it quite tedious to write in this way instead of using normal variables such as x,y,z.... 

 

Is there any easy way to assign normal variables to SW,LEDG,LEDR so we can use them inside the code? Or is this method completely unacceptable?  

 

Thanks for spending time to help.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
437 Views

Hi, fkmtac09. 

 

I'm also a beginner. 

 

In my opinion, if you want to use your own variable name, you shouldn't import the pin assignments.csv file. You can write the module, and then assign the pin in the Pin Planner. Here, you should note that you must assign the pins according to the reference book(maybe DE2 pin assignments.csv ). 

 

regards, 

zhangfeng
0 Kudos
Altera_Forum
Honored Contributor II
437 Views

Thanks a lot for the help. Seems like the code is going to be messy if I adopt this way of coding.

0 Kudos
Reply