pascalkuthe / OpenVAF

An innovative Verilog-A compiler
https://openvaf.semimod.de/
GNU General Public License v3.0
130 stars 22 forks source link

Support Constants with Bit Width and Radix Notation #147

Open thomaspepler opened 1 month ago

thomaspepler commented 1 month ago

Is it possible to support numeric constants with bit width and radix, of the form '? For example: 10'h3ff, which is a 10-bit wide constant with the value 3FF in hexadecimal, equivalent to 1023 in decimal.

gjcoram commented 3 weeks ago

I suppose it is possible, but since OpenVAF is intended for compact models, those features are pretty low priority.

Kreijstal commented 3 weeks ago

we would need to find out where in the code this parsing takes place