Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Aufgabe 3 . 2 : Erzeugung von Testeingaben a ) Testen Sie das Beispielprogramm. ( Hierzu ist nichts abzugeben. ) b ) Modifizieren Sie das
Aufgabe : 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 XAbgabe des Listings des Beispielprogramms. library ieee; use ieee.stdlogicall; use work.slvstrpack.all; StrFunktion aus der Aufgabenloesung zuvor entity testeingabe is end entity; architecture a of testeingabe is type ttestdat is array natural range of stdlogicvector downto ; constant testdat: ttestdat to : ; signal x: stdlogicvector downto ; signal T: stdlogic :; begin Eingabeprozess: process begin for idx in testdat'range loop report x & strx; x othersX after ns testdatidx after ns; wait for ns; T ; wait for ns; T ; end loop; wait; end process; end architecture;
Aufgabe : 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 XAbgabe des Listings des Beispielprogramms. library ieee;
use ieee.stdlogicall;
use work.slvstrpack.all; StrFunktion aus der
Aufgabenloesung zuvor
entity testeingabe is end entity;
architecture a of testeingabe is
type ttestdat is array natural range of
stdlogicvector downto ;
constant testdat: ttestdat to :
;
signal x: stdlogicvector downto ;
signal T: stdlogic :;
begin
Eingabeprozess: process
begin
for idx in testdat'range loop
report x & strx;
x othersX after ns testdatidx after ns;
wait for ns; T ;
wait for ns; T ;
end loop;
wait;
end process;
end architecture;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started