Commit 7236f888 authored by tebina nasreddine's avatar tebina nasreddine
Browse files

signal debug

parent dd0174b3
......@@ -43,7 +43,11 @@ architecture Behavioral of axi_present_tb is
S_AXI_BRESP : out std_logic_vector(1 downto 0);
S_AXI_BVALID : out std_logic;
S_AXI_BREADY : in std_logic;
state_signal : out std_logic_vector (2 downto 0)
state_signal : out std_logic_vector (2 downto 0);
ip_plaintext_signal : out std_logic_vector (63 downto 0);
ip_plaintext_buffer : out std_logic_vector (31 downto 0)
);
end component;
constant ADRWIDTH : integer := 8;
......@@ -77,7 +81,8 @@ architecture Behavioral of axi_present_tb is
signal S_AXI_ARPROT : std_logic_vector (2 downto 0) := "010";
signal S_AXI_RDATA : std_logic_vector(31 downto 0) := (others => '0');
signal state_signal : std_logic_vector (2 downto 0);
signal ip_plaintext_signal : std_logic_vector (63 downto 0);
signal ip_plaintext_buffer : std_logic_vector (31 downto 0);
--------------------------------------------------------
constant ClockPeriod : time := 5 ns;
constant ClockPeriod2 : time := 10 ns;
......@@ -110,7 +115,9 @@ begin
S_AXI_RVALID => S_AXI_RVALID,
S_AXI_RREADY => S_AXI_RREADY,
S_AXI_RDATA => S_AXI_RDATA,
state_signal => state_signal
state_signal => state_signal,
ip_plaintext_signal => ip_plaintext_signal,
ip_plaintext_buffer => ip_plaintext_buffer
--------------------------------------------------------
);
--stimulus :process
......@@ -189,8 +196,8 @@ begin
S_AXI_ARESETN <= '1';
S_AXI_AWADDR <= x"01";
S_AXI_WDATA <= x"00000000";
S_AXI_WSTRB <= b"1111";
S_AXI_WDATA <= x"deadbeef";
S_AXI_WSTRB <= b"0000";
sendIt <= '1'; --Start AXI Write to Slave
wait for 1 ns;
sendIt <= '0'; --Clear Start Send Flag
......@@ -199,8 +206,8 @@ begin
S_AXI_WSTRB <= b"0000";
S_AXI_AWADDR <= x"01";
S_AXI_WDATA <= x"00000001";
S_AXI_WSTRB <= b"1111";
S_AXI_WDATA <= x"beefbeef";
S_AXI_WSTRB <= b"0000";
sendIt <= '1'; --Start AXI Write to Slave
wait for 1 ns;
sendIt <= '0'; --Clear Start Send Flag
......@@ -209,7 +216,7 @@ begin
S_AXI_WSTRB <= b"0000";
S_AXI_AWADDR <= x"01";
S_AXI_WDATA <= x"00000002";
S_AXI_WDATA <= x"ffffffff";
S_AXI_WSTRB <= b"1111";
sendIt <= '1'; --Start AXI Write to Slave
wait for 1 ns;
......@@ -219,7 +226,7 @@ begin
S_AXI_WSTRB <= b"0000";
S_AXI_AWADDR <= x"01";
S_AXI_WDATA <= x"00000002";
S_AXI_WDATA <= x"32132132";
S_AXI_WSTRB <= b"1111";
sendIt <= '1'; --Start AXI Write to Slave
wait for 1 ns;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment