From 665876cfb4cd7b7a9c569342dcccfbafad65cb15 Mon Sep 17 00:00:00 2001 From: Andreas Olofsson Date: Mon, 18 May 2015 15:37:46 -0400 Subject: [PATCH] Adding bursting to test bench --- elink/dv/dv_elink.v | 1 + elink/dv/dv_elink_tb.v | 2 +- elink/dv/test.memh | 32 ++++++++++++++++++++++---------- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/elink/dv/dv_elink.v b/elink/dv/dv_elink.v index 0b98655..13d02db 100644 --- a/elink/dv/dv_elink.v +++ b/elink/dv/dv_elink.v @@ -164,6 +164,7 @@ module dv_elink(/*AUTOARG*/ //###### //CLOCKS for all //###### + eclocks eclocks (.sys_clk (clk), .hard_reset (reset), .elink_en (elink0_elink_en), diff --git a/elink/dv/dv_elink_tb.v b/elink/dv/dv_elink_tb.v index ad17c8c..9c63d66 100644 --- a/elink/dv/dv_elink_tb.v +++ b/elink/dv/dv_elink_tb.v @@ -51,7 +51,7 @@ module dv_elink_tb(); //Forever clock always - #1 clk = ~clk; //fast clock + #5 clk = ~clk; //system clock (100MHz) wire clkstim = clk; diff --git a/elink/dv/test.memh b/elink/dv/test.memh index 753b529..3c0bc70 100644 --- a/elink/dv/test.memh +++ b/elink/dv/test.memh @@ -1,10 +1,22 @@ -B7B6B5B4_B3B2B1B0_80800000_0f //write to epiphany -C7C6C5C4_C3C2C1C0_80800008_0f //write to epiphany -D7D6D5D4_D3D2D1D0_80800010_0f //write to epiphany -E7E6E5E4_E3E2E1E0_80800018_0f //write to epiphany -F7F6F5F4_F3F2F1F0_80800020_0f //write to epiphany -810D0000_B3B2B1B0_80800000_0D //read -810D0008_C3C2C1C0_80800008_0D //read -810D0010_D3D2D1D0_80800010_0D //read -810D0018_E3E2E1E0_80800018_0D //read -810D0020_F3F2F1F0_80800020_0D //read +00000000_00000000_00000000_00 //dummy +00000000_11111111_80800000_0b //write to epiphany +00000000_22222222_80800008_0b //write to epiphany +00000000_33333333_80800010_0b //write to epiphany +00000000_44444444_80800018_0b //write to epiphany +00000000_55555555_80800020_0b //write to epiphany +810D0000_DEADBEEF_80800000_09 //read +810D0008_DEADBEEF_80800008_09 //read +810D0008_DEADBEEF_80800010_09 //read +810D0018_DEADBEEF_80800018_09 //read +810D0020_DEADBEEF_80800020_09 //read +B7B6B5B4_B3B2B1B0_80800100_0f //write to epiphany +C7C6C5C4_C3C2C1C0_80800108_0f //write to epiphany +D7D6D5D4_D3D2D1D0_80800110_0f //write to epiphany +E7E6E5E4_E3E2E1E0_80800118_0f //write to epiphany +F7F6F5F4_F3F2F1F0_80800120_0f //write to epiphany +810D0100_DEADBEEF_80800100_0d //read +810D0108_DEADBEEF_80800108_0d //read +810D0108_DEADBEEF_80800110_0d //read +810D0118_DEADBEEF_80800118_0d //read +810D0120_DEADBEEF_80800120_0d //read +00000000_00000000_00000000_00 //END OF BURST