Is there a better way to assign '0' to lower bits ...
# xschem
s
Is there a better way to assign '0' to lower bits in a bus than this?
s
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...
in the above example the AP2 bus will be declared in the verilog netlist as:
wire [15:0] AP2  =  26  ;
s
I forgot to tell it is vhdl
s
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).