Simulator - Understanding what's under the hood 

The more you understand about the verilogTown, the better you can design levels and solve them.  Here we will describe the car behaviour, simulator, and program structures.

Car Behaviour


If you have read the Verilog tutorial, you got some insight to how the cars in verilogTown behave.

The car will follow the following rules:

Simulator Details


Here are some facts about the simulator that you should understand:

Program Structure - Editing Verilog Files and Levels


You might wonder where the Verilog files are kept and the levels.  This is all part of the distribution you downloaded, and both the xml files that represent the levels and the Verilog design files are in this.

To edit the Verilog files, from the root directory of verilogTown go to Levels/ and then go to the level you want to edit.  For example, to edit the traffic lights for Level 3 you would open the "Lv3/VerilogFiles/" directory.  There, you will see 11 files, which are the Verilog files.  We use the following convention for which file corresponds to which file (left to right, top to bottom):
intersection
You can edit these files using your own editor and enter these into other Verilog tools to run simulations.

Also in the directory "Lv3/Maps/" there is a file called "lv03.xml".  This file tells the game what the map looks like and where the cars come from.  You can edit this file, but we recommend using our level editor tool.