sv2v/test/relong/typedef.sv

22 lines
295 B
Systemverilog
Raw Normal View History

2019-03-27 02:32:02 +01:00
`default_nettype none
typedef logic [31:0] Word_t;
module Example(
input logic [3:0] data_in,
output logic [31:0] data_out
);
Word_t word;
always_comb begin
// This is the repeat operator
word = {8{data_in}};
end
assign data_out = word;
endmodule