Hi,
I have two questions.
1) How can we declare tow clock (clk1 and clk2) with different period in PyMTL3 ?
2) The concat operator works fine, when I use it after ‘@=’ ( s.a @= concat( s.b , s,c)). But when I use it before ‘@=’ ( concat(s.b, s.c) @= s.a), I get errors. So, is there an alternative idea to use the concatenation in this case ?Thanks!
Best regards,
Alex
Hi Peitian,
thanks for your reply.
I have another question.
How to initialize a wire with a constant in PyMTL3?
wire [4:0] a = 5'b01100;
Thanks!
Best regards,
Alex
Hi Chris,
thanks for your reply.
I get errors, when I write
s.a =Wire(3)
s.a //= 1
@update_ff
def block1():
s.a <<=s.a+1
Is it possible to initialize (not assign) a wire with a constant in PyMTL3?
In other words, how to write the following line with PyMTL3?
wire [4:0] a = 5'b01100;
Best regards,
Alex