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

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

2008-09-19 Thread Deepak Patel
o the developer :p > > I'm not aware of any python library methods which allow one to access > registers. But, the read_reg() can be implmented in C and > imported into Python. > > Any low level operation like register access is usually delegated to . > > HTH, > PG

[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

[BangPypers] Re :Re: Re :Use of module (Include file) in Python???

2008-09-11 Thread Deepak Patel
Thanks a lot guys, I have not yet tried it, got involved in something else, but will try it shortly.It looks like this "IMPORT" will be replacing the "#include" kind of behaviour in Python.Thanks,Deepak.On Sun, 7 Sep 2008 01:58:15 +0530 Bangalore Python Users Group - India wroteOn Sun, Sep 7, 20

[BangPypers] Re :Use of module (Include file) in Python???

2008-09-06 Thread Deepak Patel
Hello,I am new to Python and need some help. Can someone please tell me whether I can use the Python Module like include file? Is there a way to use the "include" file in Python? If I try to include a file with "# include", that line is treated as comment. What is the directive to include the in