<jorolf>
Hey! I'm currently trying to use Amaranth in an existing (VHDL) design. However I've run into a problem with signature port names. The default "namespace" separator is a double underscore, right? Because afaic VHDL doesn't allow double underscores in identifiers which means I can't simply integrate the generated component into my project?
<_whitenotifier-3>
[amaranth] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-1501-92439018a4d1f2ad281bc07984e1128ca15b979b - https://github.com/amaranth-lang/amaranth
<jorolf>
So for example if I have a bus with a data port, the generated identifier would be "bus__data"
<whitequark[cis]>
VHDL doesn't?
<whitequark[cis]>
that is news to me; I would have probably strongly considered a different separator if I knew that was the case
<whitequark[cis]>
can you escape an identifier somehow?
<jorolf>
I'm not sure
Wanda[cis] has joined #amaranth-lang
<Wanda[cis]>
have you tried \bus__data\ ?
<jorolf>
Hmm, not yet
<Wanda[cis]>
but... yeah, VHDL only allows underscores surrounded by digits/letters in basic identifiers
<_whitenotifier-3>
[amaranth-lang/amaranth-lang.github.io] github-merge-queue[bot] 64e1d3c - Deploying to main from @ amaranth-lang/amaranth@0f274291e7e3909a2e3f3783fdecd2c5fd565841 🚀
<jorolf>
So a quick google search says that it might work with extended identifiers
buganini has joined #amaranth-lang
<jorolf>
But our project is a Vivado Block Design which auto generates wrapper code around the verilog code
<Wanda[cis]>
... ah yeah, that's a problem
<jorolf>
Which (apparently) is not smart enough to use extended identifiers in that case
buganini has quit [Ping timeout: 252 seconds]
<jorolf>
Is there a way to change the generated names? e.g. by removing the prefix or manually setting the names?
balrog has quit [Ping timeout: 245 seconds]
balrog has joined #amaranth-lang
buganini has joined #amaranth-lang
buganini has quit [Ping timeout: 244 seconds]
jorolf has quit [Quit: Leaving]
buganini has joined #amaranth-lang
buganini has quit [Read error: Connection reset by peer]
mabl[m] has joined #amaranth-lang
<mabl[m]>
You can rename the port, by attaching a specific porty to the signal
<mabl[m]>
Though I,m not sure that renames the wrapper name. I am using autogenerated verilog wrappers
<mabl[m]>
I'm currently traveling. Will post an example tomorrow.