entitynorgate_tbisendentitynorgate_tb;architecturertlofnorgate_tbis-- forward declarationcomponentnorgateport(in1,in2:inbit;out1:outbit);endcomponent;-- binding new componentfornor_0:norgateuseentitywork.norgate;-- declare local variablesignalin1,in2,out1:bit;beginnor_0:norgateportmap(in1=>in1,in2=>in2,out1=>out1);processtypepattern_typeisrecordin1,in2:bit;endrecord;typepattern_arrayisarray(naturalrange<>)ofpattern_type;constantpattern:pattern_array:=(('0','0'),('0','1'),('1','0'),('1','1'));beginforiinpattern'rangeloopin1<=pattern(i).in1;in2<=pattern(i).in2;waitfor1ns;endloop;assertfalsereport"selesai"severitynote;wait;endprocess;endarchitecturertl;