Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidthings/hdelk

Web-based HDL diagramming tool
https://github.com/davidthings/hdelk

browser diagrams edges elkjs fpga graphs hdelk hdl javascript nodes

Last synced: 3 months ago
JSON representation

Web-based HDL diagramming tool

Awesome Lists containing this project

README

        

![](images/banner.png)

# HDElk

HDElk is a web-based HDL diagramming tool. It was designed to permit the easy visual representation of Verilog or VHDL (generically HDL’s, Hardware Description Languages) in web pages by creation of simple javascript specification objects.

The HDElk [website](https://davidthings.github.io/hdelk/) has an Overview, Installation Instructions and a Tutorial

## Simple Example

Here's a simple diagram

![](images/simple_diagram.svg)

And here's the code that would generate it on a web page

``` HTML

var simple_graph = {
id: "",
children: [
{ id: "in", port: 1 },
{ id: "one", ports: ["in", "out"] },
{ id: "two", highlight:1, ports: ["in", "out"] },
{ id: "three", ports: ["in", "out"] },
{ id: "out", port: 1 }
],
edges: [
["in","one.in"],
{route:["one.out","two.in"],highlight:1},
{route:["two.out","three.in"],highlight:1,bus:1},
{route:["three.out","out"], bus:1 }
]
}

hdelk.layout( simple_graph, "simple_diagram" );


```

## Use

Grab the three js files.

Insert the above into an HTML file.

Browse to it.

See the [example.html](example.html) file