configuration struct_test of reg4 is for struct for gate : and2 use entity work.and_2in; end for; for all : D_ff use entity work.D_ff port map (data => d, clock => clk, output => q); end for; end for; end struct_test;