Professional Documents
Culture Documents
Use a text editor (e.g., Notepad) & enter your VHDL code. Save the code in a file with the .vhd extension. In Windows, you may want to disable the extension (e.g., .vhd) hiding function. Start ModelSim SE5.7e Change the working directory: Click on File & then click on Change Directory. Enter a working directory of your own choice. Your work will be saved in that directory. Create a library (called work below) into which your vhdl code will be compiled: Type the following command in the command prompt of ModelSim: vlib work (enter)
Once the code is saved as .vhd file, you can compile it using the command (the -93 refers to the 1993 version) vcom -93 filename.vhd (enter)
Note: Each vhd design that is in a separate file must be specified with a vcom command (can have more than one/command)
Note: If your code has errors, the compilation process wont complete. Errors will be highlighted if you click on them. Start from the 1st error & then proceed. Often, correcting the 1st few errors will eliminate the rest of them.
2
References
http://www.aldec.com/FreeTutorials/ : Select the VHDL tutorial and download it. This is an excellent material for vhdl novices and it starts from the basics of logic design and goes up to writing good vhdl program.