Source code editor window

016_source_edit : Source code editor window

Minimum Required Versions: SILOS 4.12.1.C

This example demonstrates the following features of the source code editor windows: Syntax coloring, Data tips display variable values and Module hierarchy navigation (up/down scope).

Example 016_source_edit circuit is a one bit adder implemented as a Verilog gate level design. The schematic consisting of gate level primitives and the Verilog netlist generated by Gateway are shown. The testbench source file contains Verilog behavioral code to generate the input test pattern. The SILOS graphical user interface includes the Source Code Editor window which uses syntax coloring, data tips display for variable values and module hierarchy navigation (up/down scope) features.

Open source code for source code window

  • Simulate the project 1bit_adder.spjx and open the source file from File->Open to select one_bit_adder.v and 1bit_testbench.v.

Source code editing

  • You can edit the source code in the source code window anytime you want.
  • To save and run your edited source file, click the toobar buttons Save, Load/Reload, and Go.

Syntax coloring

  • For Verilog keywords and other reserved words, SILOS uses different colors to identify the Verilog syntax used.
  • For example, the Verilog keyword "module" is colored in blue.

Data tips display for variable values

  • By putting the mouse cursor onto any kind of signals, the Data Tips displays variable values in a pop-up.
  • In this example, the values for xor21 I1 .Y(s1) at time 15 are shown.

Module hierarchy navigation (up/down scope)

  • Select one of the module definitions.
  • In this example, select xor21 of the file one_bit_adder.v.
  • Click the right mouse button and select Upscope To Module from the context menu.
  • SILOS will automatically open "1bit_testbench.v" as an upper hierarchical module.
  • Also select Downscope To Module from the context menu shown by clicking the right mouse button on the selected xor21.
  • SILOS will also automatically open "primitives.v" as a lower hierarchical module and highlight the module definition.