X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hwmod.git;a=blobdiff_plain;f=src%2Fbeh_pc_communication_tb.vhd;h=854e7eeeb6d61357b0e240b2b4b70c8875c4903e;hp=4efc777a9f1a4895ee5fa0d328b113ae9e9591bc;hb=ddab1a2d21f4682c48f7ccc4ef1e3eb465e73f71;hpb=dc3a6d0603e85651f3df61aa52c19f29d64c24af diff --git a/src/beh_pc_communication_tb.vhd b/src/beh_pc_communication_tb.vhd index 4efc777..854e7ee 100644 --- a/src/beh_pc_communication_tb.vhd +++ b/src/beh_pc_communication_tb.vhd @@ -66,29 +66,39 @@ begin file f : byte_file_type open read_mode is "../../src/pc_communication.test"; variable rb : hbyte; begin + d_done <= '0'; wait until rising_edge(d_get); assert not endfile(f) report "test beendet" severity failure; read(f, rb); wait for 30 ns; d_char <= rb; d_done <= '1'; - wait for 15 ns; - d_done <= '0'; + wait for 30 ns; end process stub_history; + + stub_uart : process + begin + tx_done <= '0'; + wait until rising_edge(tx_new); + wait for 90 ns; + tx_done <= '1'; + wait for 90 ns; + end process stub_uart; + reset_and_button : process begin -- init & reset -- we only simulate pressing of button a by now! sys_res_n <= '0'; btn_a <= '0'; - d_done <= '0'; tx_data <= "00000000"; rx_data <= "00000000"; d_zeile <= "0000000"; d_spalte <= "0000000"; tx_new <= '0'; tx_done <= '0'; + rx_new <= '0'; wait for 90 ns; sys_res_n <= '1';