aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue2166/tb.vhdl
blob: e35b336be8ddb47f98a9d1c325c04135613be072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library ieee ;
use ieee.std_logic_1164.all ;
use ieee.numeric_std.all ;
library OSVVM ;
use OSVVM.MemoryPkg.all;

entity tb is
end;

architecture behav of tb is
begin
  process
    variable MemoryID : MemoryIDType;
  begin
    MemoryID := NewID(
      Name      => "my_sram",
      AddrWidth => 20,
      DataWidth => 16);

    MemWrite(MemoryId, x"00000", x"0000");
    wait;
  end process;
end ;