S
server
Guest
message unavailable
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
lzh wrote:
...
module test(a,b);
input a;
output [1:0] b;
reg [1:0] b;
always @(a)
begin
assign b[0]=a;
assign b[1]=!a;
end
endmodule
when i use Cadence Verilog-XL to compile it ,Verilog-XL report a
error \"Illegal
left-hand-side in assignment\",but when i use Veriwell to compile it ,it
does work!
and if i use \"assign b={a,!a};\"instead of it,the Verilog-XL can compile it
without any error,can anybody explain why?
Bit select on the left side of a continuous procedural assignment is
prohibited in the OVI 2.0 Verilog LRM.
David Emrich
Exemplar Logic
emr...@exemplar.com
.
lzh wrote:
...
module test(a,b);
input a;
output [1:0] b;
reg [1:0] b;
always @(a)
begin
assign b[0]=a;
assign b[1]=!a;
end
endmodule
when i use Cadence Verilog-XL to compile it ,Verilog-XL report a
error \"Illegal
left-hand-side in assignment\",but when i use Veriwell to compile it ,it
does work!
and if i use \"assign b={a,!a};\"instead of it,the Verilog-XL can compile it
without any error,can anybody explain why?
Bit select on the left side of a continuous procedural assignment is
prohibited in the OVI 2.0 Verilog LRM.
David Emrich
Exemplar Logic
emr...@exemplar.com
.
lzh wrote:
...
module test(a,b);
input a;
output [1:0] b;
reg [1:0] b;
always @(a)
begin
assign b[0]=a;
assign b[1]=!a;
end
endmodule
when i use Cadence Verilog-XL to compile it ,Verilog-XL report a
error \"Illegal
left-hand-side in assignment\",but when i use Veriwell to compile it ,it
does work!
and if i use \"assign b={a,!a};\"instead of it,the Verilog-XL can compile it
without any error,can anybody explain why?
Bit select on the left side of a continuous procedural assignment is
prohibited in the OVI 2.0 Verilog LRM.
David Emrich
Exemplar Logic
emr...@exemplar.com
.