1
0
Fork 0

plusarg_reader: make synthesis path a no brainer (#947)

This commit is contained in:
Wesley W. Terpstra 2017-08-10 16:35:30 -07:00 committed by GitHub
parent 0a591c5b5b
commit fa867bc478
1 changed files with 4 additions and 4 deletions

View File

@ -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