Skip to content

Instantly share code, notes, and snippets.

@sgherbst
Created October 3, 2020 02:12
Show Gist options
  • Save sgherbst/b97dbd426793ef429ba8c6ff5a05f335 to your computer and use it in GitHub Desktop.
Save sgherbst/b97dbd426793ef429ba8c6ff5a05f335 to your computer and use it in GitHub Desktop.
slang output
{
"name": "$root",
"kind": "Root",
"addr": 140418817750560,
"members": [
{
"name": "",
"kind": "CompilationUnit",
"addr": 140418822058456
},
{
"name": "top",
"kind": "Instance",
"addr": 140418822058624,
"body": {
"name": "top",
"kind": "InstanceBody",
"addr": 140418822058912,
"members": [
{
"name": "i_clk",
"kind": "Port",
"addr": 140418822059320,
"type": "logic",
"direction": "In",
"internalSymbol": "140418822059472 i_clk"
},
{
"name": "i_clk",
"kind": "Net",
"addr": 140418822059472,
"type": "logic"
},
{
"name": "o_clks",
"kind": "Port",
"addr": 140418822059608,
"type": "logic[1:0]",
"direction": "Out",
"internalSymbol": "140418822059760 o_clks"
},
{
"name": "o_clks",
"kind": "Variable",
"addr": 140418822059760,
"type": "logic[1:0]",
"lifetime": "Static",
"isConstant": false,
"isCompilerGenerated": false
},
{
"name": "i",
"kind": "Genvar",
"addr": 140418822059176
},
{
"name": "generate_test",
"kind": "GenerateBlockArray",
"addr": 140418822059920,
"members": [
{
"name": "",
"kind": "GenerateBlock",
"addr": 140418822103568,
"members": [
{
"name": "i",
"kind": "Parameter",
"addr": 140418822103688,
"type": "integer",
"value": "0",
"isLocal": true,
"isPort": false,
"isBody": true
},
{
"name": "my_module_inst",
"kind": "Instance",
"addr": 140418822104864,
"body": {
"name": "my_module",
"kind": "InstanceBody",
"addr": 140418822104960,
"members": [
{
"name": "i_clk",
"kind": "Port",
"addr": 140418822105224,
"type": "logic",
"direction": "In",
"internalSymbol": "140418822105376 i_clk"
},
{
"name": "i_clk",
"kind": "Net",
"addr": 140418822105376,
"type": "logic"
},
{
"name": "o_clk",
"kind": "Port",
"addr": 140418822105512,
"type": "logic",
"direction": "Out",
"internalSymbol": "140418822105664 o_clk"
},
{
"name": "o_clk",
"kind": "Net",
"addr": 140418822105664,
"type": "logic"
}
],
"definition": "my_module"
}
}
],
"constructIndex": 1,
"isInstantiated": true
},
{
"name": "",
"kind": "GenerateBlock",
"addr": 140418822103912,
"members": [
{
"name": "i",
"kind": "Parameter",
"addr": 140418822104032,
"type": "integer",
"value": "1",
"isLocal": true,
"isPort": false,
"isBody": true
},
{
"name": "my_module_inst",
"kind": "Instance",
"addr": 140418822106480,
"body": {
"name": "my_module",
"kind": "InstanceBody",
"addr": 140418822104960,
"members": [
{
"name": "i_clk",
"kind": "Port",
"addr": 140418822105224,
"type": "logic",
"direction": "In",
"internalSymbol": "140418822105376 i_clk"
},
{
"name": "i_clk",
"kind": "Net",
"addr": 140418822105376,
"type": "logic"
},
{
"name": "o_clk",
"kind": "Port",
"addr": 140418822105512,
"type": "logic",
"direction": "Out",
"internalSymbol": "140418822105664 o_clk"
},
{
"name": "o_clk",
"kind": "Net",
"addr": 140418822105664,
"type": "logic"
}
],
"definition": "my_module"
}
}
],
"constructIndex": 1,
"isInstantiated": true
}
],
"constructIndex": 1
}
],
"definition": "top"
}
}
]
}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment