tcr / hoodlum

A nicer HDL.
http://github.com/tcr/hoodlum#hoodlum-tutorial
Apache License 2.0
97 stars 3 forks source link

Named instance port assignment support #2

Closed ravenexp closed 8 years ago

ravenexp commented 8 years ago

Both Verilog and VHDL support named instance port assignment. I understand that Hoodlum tries to stick to Rust syntax as much as possible, but HDL modules can have a very large number of ports. It is simply impossible to maintain such code with positional port assignment only.

tcr commented 8 years ago

@ravenexp I'm thinking the same thing, and that's now the default: https://github.com/tcr/hoodlum/blob/master/examples/rot/rot.hdl#L21

Hoodlum should borrow familiar ideas from Rust syntax, but should not at all be limited to it. Having entities mirror struct invocation though is pretty intuitive.