Is there a better way to assign '0' to lower bits in a bus than this?
s
Stefan Schippers
06/20/2024, 9:16 PM
If this is a verilog design you should do as shown in picture:
Click on the pin or label and assign a '`value=...` attribute, values have the same syntax as verilog code, so
255
,
16'hff
and so on...
Stefan Schippers
06/20/2024, 9:24 PM
in the above example the AP2 bus will be declared in the verilog netlist as:
wire [15:0] AP2 = 26 ;
s
Svenn Are Bjerkem
06/21/2024, 7:55 AM
I forgot to tell it is vhdl
s
Stefan Schippers
06/23/2024, 10:05 AM
the value attribute on signals and pins works also for VHDL. Xschem adds the necessary quotes '...' (for scalars) or double quotes "..." (for vectors) or nothing (real / integer values).