Last active
March 17, 2022 21:56
-
-
Save jfdm/4ed9edc755a20177af1de0bc33e150ba to your computer and use it in GitHub Desktop.
LightClick handling optional connections.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model lightclick | |
modules | |
a = module | |
{ clk : logic output high | |
, rst : logic output high optional | |
}; | |
b = module {clk : logic input high}; | |
connections | |
a[clk] -> b[clk]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module a | |
( | |
output logic clk, | |
output logic rst | |
); | |
// TO ADD | |
endmodule; | |
module b | |
( | |
input logic clk | |
); | |
// TO ADD | |
endmodule; | |
module Top (); | |
wire logic a_clk_b_clk; | |
a lightclick_module_0 | |
( | |
.clk(a_clk_b_clk), | |
.rst() | |
); | |
b lightclick_module_1 | |
( | |
.clk(a_clk_b_clk) | |
); | |
endmodule; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment