#include "teal.h" using namespace teal; void verification_top () { const int RAM_SIZE=313; const int ADDR_WIDTH=10; const int DATA_WIDTH=123; const int ram1=0x1000; const int ram2=0x2000; int i; int clocks; int addr, data; file_vlog not_used = file_vlog (teal::dictionary::find ("out_file"), dictionary::find ("interactive", true)); vreg test_done ("top.test_done"); vreg clk ("top.clk"); vreg cs1 ("top.cs1"); vreg cs2 ("top.cs2"); vreg rnw ("top.rnw"); vreg databus ("top.databus"); vreg addrbus ("top.addrbus"); vout log ("memory_test"); log.message_display (vlog::thread_name, false); memory::add_map ("top.U_ram1", ram1, ram1 + RAM_SIZE-1); //let system add ram1 memory::add_map ("top.U_ram2", ram2, ram2 + RAM_SIZE-1); //let system add ram2 log << "Initializing U_ram1" << endm; for (i=ram1; i