hdelk icon indicating copy to clipboard operation
hdelk copied to clipboard

Adding external pins feature

Open jainpranav1 opened this issue 3 years ago • 2 comments

Thank you so much for making this tool. This tool was able to help me make the Nand2Tetris HDL Visualizer extension: https://marketplace.visualstudio.com/items?itemName=PranavJain.nand2tetris-hdl-visualizer&ssr=false#overview which has been deployed in my university's computer organization class. screenshot1 In the image, you can see that I modified the HDElk file inorder to accommodate external pins, like sel[0], sel[1], etc. This was done by adding them to internal pins on internal gates, and then shifting the internal pin boxes so that the external pins are separated from the internal pins. Is it possible that you can add a feature to draw external pins within the HDElk library? Then, I wouldn't have to add separate code to do so. Please let me know if this is possible. Thank you again for your time and efforts. This is a really awesome tool.

jainpranav1 avatar Feb 05 '22 15:02 jainpranav1

Could the internal port feature help?

https://davidthings.github.io/hdelk/tutorial#internal-ports

davidthings avatar Apr 11 '22 18:04 davidthings

Hi! I originally used the internal ports feature, but the ports ended up far from their respective gates connected by long wires. This made the diagram quite cluttered and hard to follow. That is why I decided to not use the internal port feature and instead add my own code to make ports close to their respective gates.

jainpranav1 avatar Apr 11 '22 20:04 jainpranav1