ravimartha has asked for the wisdom of the Perl Monks concerning the following question:
for this how can i convert the above block to################################# always @ (a or b ) begin case({a,b}) 2'b00 : begin sum = 1'b0; carry = 1'b0; end 2'b01 : begin sum = 1'b1; carry = 1'b0; end 2'b10 : begin sum = 1'b1; carry = 1'b0; end 2'b11 : begin sum = 1'b0; carry = 1'b1; end endcase end ##################################
using perl. are there any packages to solve this problemsum = (a(~b))&((~a)b) carry = a&b
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Coverting Case statements of verilog to equations.
by toolic (Bishop) on Apr 02, 2012 at 17:07 UTC | |
|
Re: Coverting Case statements of verilog to equations.
by jandrew (Chaplain) on Apr 02, 2012 at 18:54 UTC | |
|
Re: Coverting Case statements of verilog to equations.
by roboticus (Chancellor) on Apr 02, 2012 at 23:33 UTC |