plusarg_reader: make synthesis path a no brainer (#947)
This commit is contained in:
parent
0a591c5b5b
commit
fa867bc478
@ -6,15 +6,15 @@ module plusarg_reader #(FORMAT="borked=%d", DEFAULT=0) (
|
|||||||
output [31:0] out
|
output [31:0] out
|
||||||
);
|
);
|
||||||
|
|
||||||
|
`ifdef SYNTHESIS
|
||||||
|
assign out = DEFAULT;
|
||||||
|
`else
|
||||||
reg [31:0] myplus;
|
reg [31:0] myplus;
|
||||||
assign out = myplus;
|
assign out = myplus;
|
||||||
|
|
||||||
initial begin
|
initial begin
|
||||||
`ifdef SYNTHESIS
|
|
||||||
myplus = DEFAULT;
|
|
||||||
`else
|
|
||||||
if (!$value$plusargs(FORMAT, myplus)) myplus = DEFAULT;
|
if (!$value$plusargs(FORMAT, myplus)) myplus = DEFAULT;
|
||||||
`endif
|
|
||||||
end
|
end
|
||||||
|
`endif
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
Loading…
Reference in New Issue
Block a user