-
Notifications
You must be signed in to change notification settings - Fork 11
/
Verilog Gadget.sublime-settings
68 lines (54 loc) · 1.99 KB
/
Verilog Gadget.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
/* UI Configuration _________________________________________
*/
"context_menu": true,
"verilog_ext": [ ".v", ".vh", ".sv", ".svh" ], // for context_menu
"Generate Testbench": "show",
"Generate Testbench Ref/Imp": "hide",
"Module Wrapper": "hide",
"Simulation Template": "show",
"Insert Header": "show",
"Insert Snippet": "show",
"Instantiate Module": "show",
"Repeat Code with Numbers": "show",
"VCD to WaveDrom": "show",
/* Core settings ____________________________________________
*/
// default prefix for a instance name
"inst_prefix": "inst_",
// alignment (tab or space)
"tab_assignment": false,
"tab_port_declaration": true,
"tab_signal_declaration": true,
"tab_port_connection": false,
/* Header / Snippet _________________________________________
*/
// header template file path
"header": "example",
"auto_update_header": true,
// parameterized snippets
"snippets" : {
"Complex Multiplier" : { // example
"codes" : "Packages/Verilog Gadget/template/verilog_cplxm.v",
"param" : ["AB", "BB"],
"evals" : ["ZB=AB+BB+1"], // simple calculation only
"descr" : "INPUTA , INPUTB [ complex mult ]",
"regex" : "\\s*(?P<AB>\\d+)\\s*[,.\\s]\\s*(?P<BB>\\d+)\\s*"// regex for parameter input
},
/* add more snippets here */
},
/* for Testbench ____________________________________________
*/
"reset" : [], // default asynchronous reset name, leave a blank not to use it
"sreset" : ["srstb"], // default synchronous reset name, leave a blank not to use it
"clock" : ["clk", "uclk", "cclk"], // default clock name, leave a blank not to use it
"wave_type" : "fsdb", // type of waveform, one of "fsdb", "vpd", "shm", "vcd"
"task_init" : true,
"task_drive": true,
/* Simulation Template ______________________________________
*/
// specify a your own template path (compressed file - zip,tgz,tar)
// there are 2 examples - example-modelsim, example-vcs
"simulation_template" : "example-modelsim",
"simulation_directory" : "simtest"
}