Skip to content

Instantly share code, notes, and snippets.

@Forty-Bot
Last active May 16, 2020 22:17
Show Gist options
  • Select an option

  • Save Forty-Bot/d16632f50085ce708ad915a2d263a293 to your computer and use it in GitHub Desktop.

Select an option

Save Forty-Bot/d16632f50085ce708ad915a2d263a293 to your computer and use it in GitHub Desktop.
module foo #(
parameter BAR = 16,
parameter BAZ = 8,
) (
input [BAR - 1:0] bar,
output [BAZ - 1:0] baz,
);
/* ... */
endmodule
module top;
wire [15:0] bar;
wire [7:0] baz;
foo fooi (
.bar (bar),
.baz (baz),
);
wire [fooi.BAR - 1:0] qux;
endmodule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment