saikumar486
Newbie level 4
I struck to write code in vhdl/verilog of representing binary signed digit (BSD) where 1 bar is nothing but - (negative) that value
i.e., let me go through with an example
a) 2= 0010 in binary where it can be written as by using BSD
as 011(bar)0 (4-2=2), 11(bar)1(bar)0{8-4-2=2}
similarly for 3= 0011 it can also written as
3= 0101(bar) {4-1=3}
but in vhdl or verilog how to represent -1 i.e, 1(bar) to implement this concept pls hlp me !!
i.e., let me go through with an example
a) 2= 0010 in binary where it can be written as by using BSD
as 011(bar)0 (4-2=2), 11(bar)1(bar)0{8-4-2=2}
similarly for 3= 0011 it can also written as
3= 0101(bar) {4-1=3}
but in vhdl or verilog how to represent -1 i.e, 1(bar) to implement this concept pls hlp me !!