OpenCores
URL https://opencores.org/ocsvn/tinycpu/tinycpu/trunk

Subversion Repositories tinycpu

[/] [tinycpu/] [trunk/] [testbench/] [blockram_tb.vhd] - Diff between revs 10 and 11

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 10 Rev 11
Line 93... Line 93...
    -- case 3
    -- case 3
    Address <= x"01";
    Address <= x"01";
    wait for 10 ns;
    wait for 10 ns;
    assert (DataOut="1000000000001000") report "memory retention error case 3" severity error;
    assert (DataOut="1000000000001000") report "memory retention error case 3" severity error;
 
 
 
    --case 4 (byte-wide test)
 
    Address <= x"11";
 
    WriteEnable(0) <= '1';
 
    WriteEnable(1) <= '1';
 
    DataIn <= x"932F";
 
    wait for 10 ns;
 
    WriteEnable(1) <= '0';
 
    DataIn <= x"165A";
 
    wait for 10 ns;
 
    WriteEnable(0) <= '0';
 
    wait for 10 ns;
 
    assert (DataOut=x"935A") report "byte-wide write error case 4" severity error;
 
 
    --case 5
    --case 5
    --Address <= x"FFFF";
    --Address <= x"FFFF";
    --Write <= '0';
    --Write <= '0';
    --wait for 10 ns;
    --wait for 10 ns;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.