Created
February 22, 2023 09:50
-
-
Save yodalee/d6468f88e7e76d86c15eabe0c600f021 to your computer and use it in GitHub Desktop.
This file contains 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
typedef struct { | |
logic [255:0] msg; | |
logic [255:0] key; | |
logic [255:0] modulus; | |
} StructType; | |
module TestMod ( | |
input logic clk, | |
StructType in | |
); | |
logic [255:0] msg; | |
logic [255:0] key; | |
logic [255:0] modulus; | |
always_ff @( posedge clk ) begin | |
msg <= in.msg; | |
key <= in.key; | |
modulus <= in.modulus; | |
end | |
endmodule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment