_ This document is created for Linux systems _
-
Steps
- Setup
cd ~/path/where/you/stored/code mkdir someModule touch someModule/someModule.v
- first line of someModule/someModule.v should be module someModule
_ Module names should be no more than 10 chars in length _ - in code directory run the following
v build module someModule/
to compile the module - in code directory run
v run the_file_in_code_directory.v
to run it directly orv the_file_in_code_directory.v && ./the_file_in_code_directory
to compile it then run it
- Setup
-
int_swap module example If you were doing it yourself, start with:
cd ~/Documents/example mkdir int_swap touch int_swap/int_swap.v
in example directory run
v build module int_swap/
then runv run example.v
orv example.v && ./example
-
I've included more information in comments in the actual sample files if you'd like more