Skip to content

Instantly share code, notes, and snippets.

@yodalee
Created February 22, 2023 09:50
Show Gist options
  • Save yodalee/d6468f88e7e76d86c15eabe0c600f021 to your computer and use it in GitHub Desktop.
Save yodalee/d6468f88e7e76d86c15eabe0c600f021 to your computer and use it in GitHub Desktop.
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