Re: [myhdl-list] signed bit vectors
Brought to you by:
jandecaluwe
From: Matt E. <ma...@et...> - 2005-10-25 07:42:34
|
nicran wrote: > As I know, there is no way to specify the bitwidth, you can only > specify the default value of a bitvector. > > > 2005/10/25, Matt Ettus <ma...@et...>: > >>I just discovered MyHDL today, and it appears to be just what I've been >>looking for! Thanks for making it and for documenting it so well! I >>was able to get up and running with complex simulations in less than >>half a day. >> >>I just have a couple of questions -- Is there any way to make intbv's >>signed? Also, how do I specify the bitwidth? I just found how to set ranges, which is I guess the substitute for setting bitwidths. However, when I set an intbv signal to a negative value, it is giving me X's in my verilog simulation. Any ideas? Thanks, Matt |