library IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_arith.all; use IEEE.electrical_systems.all; entity tb_std_logic_to_analog is end tb_std_logic_to_analog; architecture TB_std_logic2analog of tb_std_logic_to_analog is -- Component declarations -- Signal declarations terminal ana_out : electrical ; signal ina : std_logic ; begin -- Signal assignments -- Component instances d2a1 : entity work.std_logic_to_analog(ideal) port map( d => ina, -- bit type pin a => ana_out ); clk1 : entity work.clock_duty(ideal) generic map( off_time => 2 ms, on_time => 1 ms ) port map( CLOCK_OUT => ina -- std_logic type pin ); R1 : entity work.resistor(ideal) generic map( res => 10.0e3 ) port map( p1 => ana_out, p2 => electrical_ref ); end TB_std_logic2analog;