From fa867bc47804d138cc59add2a2c7a310c3fada14 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Thu, 10 Aug 2017 16:35:30 -0700 Subject: [PATCH] plusarg_reader: make synthesis path a no brainer (#947) --- vsrc/plusarg_reader.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vsrc/plusarg_reader.v b/vsrc/plusarg_reader.v index 4ac275a4..c3eb6513 100644 --- a/vsrc/plusarg_reader.v +++ b/vsrc/plusarg_reader.v @@ -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