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
|
||||
);
|
||||
|
||||
`ifdef SYNTHESIS
|
||||
assign out = DEFAULT;
|
||||
`else
|
||||
reg [31:0] myplus;
|
||||
assign out = myplus;
|
||||
|
||||
initial begin
|
||||
`ifdef SYNTHESIS
|
||||
myplus = DEFAULT;
|
||||
`else
|
||||
if (!$value$plusargs(FORMAT, myplus)) myplus = DEFAULT;
|
||||
`endif
|
||||
end
|
||||
`endif
|
||||
|
||||
endmodule
|
||||
|
Loading…
Reference in New Issue
Block a user