Re: [BangPypers] One python question (from verilog)

2008-09-19 Thread Deepak Patel
Anand, Thanks. I am sure that this C like operation should work, I have not yet checked it though. Deepak On Fri, Sep 19, 2008 at 6:47 PM, Anand Chitipothu <[EMAIL PROTECTED]>wrote: > On Sat, Sep 20, 2008 at 4:32 AM, Deepak Patel <[EMAIL PROTECTED]> > wrote: > > Hello all, > > > > I want to a wr

Re: [BangPypers] One python question (from verilog)

2008-09-19 Thread Deepak Patel
Pradeep, Thanks. I am not aware if Python provides the feature of accessing the value by its bit poition: Can we do "if read_data[bit_pos] === poll_val:" in Python? Can you please let me know little bit more about this line? Whether Read_data will be declread as list() or dict()? Thanks, Deepak

Re: [BangPypers] One python question (from verilog)

2008-09-19 Thread Anand Chitipothu
On Sat, Sep 20, 2008 at 4:32 AM, Deepak Patel <[EMAIL PROTECTED]> wrote: > Hello all, > > I want to a write a method in Python to poll a register for '1' or '0'. It > is kind of very simple in verilog, but not sure if python provides > flexibility or not. > > My algorithm (kind of Verilog syntax wh

Re: [BangPypers] One python question (from verilog)

2008-09-19 Thread Pradeep Gowda
The syntax looks familiar, almost python like. The equivalent python code would be*: def poll_reg(bit_pos, poll_val, reg_offset): matched = 0 while matched != 1: read_data = read_reg(reg_offset) if read_data[bit_pos] === poll_val:

[BangPypers] One python question (from verilog)

2008-09-19 Thread Deepak Patel
Hello all, I want to a write a method in Python to poll a register for '1' or '0'. It is kind of very simple in verilog, but not sure if python provides flexibility or not. My algorithm (kind of Verilog syntax where I can access the bits without any extra processing) is as follows: poll_reg ( in

Re: [BangPypers] creating exe file

2008-09-19 Thread Kushal Das
On Friday 19 September 2008 04:36:41 pm Ataulla S H wrote: > hi Subhan, > > install py2exe > Its very easy to convert In Linux!!! Kushal -- Fedora Ambassador, India http://kushaldas.in http://dgplug.org (Linux User Group of Durgapur) ___ BangPypers ma

Re: [BangPypers] creating exe file

2008-09-19 Thread Ataulla S H
hi Subhan, install py2exe Its very easy to convert On Fri, Sep 19, 2008 at 4:31 PM, Mahaboob subhan <[EMAIL PROTECTED]>wrote: > how to covert python script files as ".exe" files in linux > > Regards, > Subhan. > > ___ > BangPypers mailing list > Bang

[BangPypers] creating exe file

2008-09-19 Thread Mahaboob subhan
how to covert python script files as ".exe" files in linux Regards, Subhan. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers