Download Quixote User's Manual
Transcript
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock of hold time
ace_n(0) <= ’1’ after 2 ns;
aea <= (others => ’H’) after 2 ns;
aed <= (others => ’H’) after 2 ns;
aaoe_n <= ’1’;
end write_ACE0;
Figure 34. VHDL Procedure for Simulating a DSP Async Access
procedure write_ACE0 (
constant address : bit_vector(22 downto 16);
constant data: bit_vector(63 downto 0) )
procedure read_ACE0 (
constant address : bit_vector(22 downto 16);
constant data: bit_vector(63 downto 0) )
In use…..
--- write to UD
write_ACE0("0110000", X"00000000000000FF"); -- ud config
write_ACE0("1010000", X"0000000A98765432"); -- ud data
gap;
read_ACE0("1010000");
Figure 35. Simulating a DSP Async Access
There are also testbench procedures for the burst accesses
-- reads from ’C6414 ACE1, modeling FIFO-style burst sync accesses (burst length = 8)
procedure read_ACE1 (
constant address : bit_vector(22 downto 16)
) is
begin
wait until aeclkout1’event and aeclkout1 = ’1’;
ace_n <= "01" after 2 ns;
aea <= to_stdlogicvector(address) after 2 ns;
aed <= (others => ’H’);
aare_n <= ’0’ after 2 ns; -- variable by external clock phase correction
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock before aaoe_n (data word 0)
aaoe_n <= ’0’;
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock of strobe time (data word 1)
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock of strobe time (data word 2)
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock of strobe time (data word 3)
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock of strobe time (data word 4)
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock of strobe time (data word 5)
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock of strobe time (data word 6)
wait until aeclkout1’event and aeclkout1 = ’1’; -- 1 clock of strobe time (data word 7)
ace_n <= "11" after 2 ns;
aare_n <= ’1’ after 2 ns;
aea <= (others => ’H’) after 2
wait until aeclkout1’event and
wait until aeclkout1’event and
wait until aeclkout1’event and
ns;
aeclkout1 = ’1’; -- 3 clocks of latency
aeclkout1 = ’1’;
aeclkout1 = ’1’;
aaoe_n <= ’1’ after 2 ns;
wait until aeclkout1’event and aeclkout1 = ’1’; -- gap time
end read_ACE1;
Quixote User's Manual
145