Skip to content

Commit

Permalink
unread: Assign to dummy net when synthesizing with vivado (#193)
Browse files Browse the repository at this point in the history
Synthesizing with Vivado results in the module unread being a black box and subsequent implementation fails.

This patch proposes to assign the input to a fake net to mitigate this error.
  • Loading branch information
huettern authored Jul 26, 2023
1 parent 0989ff7 commit 33570c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/unread.sv
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
module unread (
input logic d_i
);

// Vivado treats this module as black box otherwise
`ifdef TARGET_VIVADO
logic x;
assign d_i = x;
`endif
endmodule
/* verilator lint_on UNUSED */

0 comments on commit 33570c5

Please sign in to comment.