Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Aufgabe 3 . 2 : Erzeugung von Testeingaben a ) Testen Sie das Beispielprogramm. ( Hierzu ist nichts abzugeben. ) b ) Modifizieren Sie das

Aufgabe 3.2: Erzeugung von Testeingaben
a) Testen Sie das Beispielprogramm. (Hierzu ist nichts abzugeben.)
b) Modifizieren Sie das Beispielprogramm so, dass der nachfolgende Signalverlauf erzeugt wird.
Durchgngig schwarz bedeutet 'X'.(Abgabe des Listings des Beispielprogramms.) library ieee;
use ieee.std_logic_1164.all;
use work.slvstr_pack.all; -- Str-Funktion aus der
-- Aufgabenloesung zuvor
entity testeingabe is end entity;
architecture a of testeingabe is
type t_testdat is array (natural range >) of
std_logic_vector(7 downto 0);
constant testdat: t_testdat(0 to 9) :=
(0=>"01100111",1=>"01110111",
2=>"01010111",3=>"10010101",
4=>"11000011",5=>"10010100",
6=>"00101011",7=>"00100011",
8=>"00100111",9=>"00101101");
signal x: std_logic_vector(7 downto 0);
signal T: std_logic :='0';
begin
Eingabeprozess: process
begin
for idx in testdat'range loop
report "x=" & str(x);
x =(others=>'X') after 1 ns, testdat(idx) after 3 ns;
wait for 5 ns; T ='1';
wait for 5 ns; T ='0';
end loop;
wait;
end process;
end architecture;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions