[myhdl-list] Need instance name
Brought to you by:
jandecaluwe
|
From: Neal B. <ndb...@gm...> - 2009-04-14 18:42:42
|
I coded a function that, when synthesized, generates very poor verilog code.
So, I hand coded the verilog using __verilog__. Problem is, that I coded
something like:
always @(%(x)s) begin
reg signed [%(inbits)s-1:0] y1;
...
This gives a syntax error regarding unnamed blocks. If I let myhdl code the
block, it would be a named block, using the instance name.
How can I get the instance name from my python code, so I could write
always @(%(x)s) begin: <instance name>
|