Re: [myhdl-list] combining values in signals
Brought to you by:
jandecaluwe
From: Josy B. <jos...@gm...> - 2015-03-03 22:10:01
|
Edward Vidal <develone <at> sbcglobal.net> writes: > > > Josy r is not a Signal it is a sub band of an image it started out as list. See github > develone/jpeg-2000-test/jpeg2k/parellel_jpeg/test_bench_array_jpeg.py typing on cell might ha > have error. Regards thanks > OK, I found the repository. Next time I'll check that first (if there is a link), If you want to combine negative and positive numbers you have to explicitly convert negative numbers to their 2's complement first. I assume that the positive numbers are < 2**(10-1)? If you later want to extract a 10 bit value you have to explicitly convert the 2's complement into a normal integer to get the sign back. Regards, Josy |