aboutsummaryrefslogtreecommitdiff
path: root/src/tb/tb_wrapper.v
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2017-07-25 01:21:28 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2017-07-25 01:21:28 +0300
commitbd6c4a9b916cd36890ebec72fae50555dfe6e7ba (patch)
tree9ab163d65bbd0c90f016abe4325685fb463d0b5c /src/tb/tb_wrapper.v
parentc4326507c85196bd30adb4d20ce07448a8306066 (diff)
Trying to fix the bug during calculation of SN in systolic multiplier.
Diffstat (limited to 'src/tb/tb_wrapper.v')
-rw-r--r--src/tb/tb_wrapper.v44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/tb/tb_wrapper.v b/src/tb/tb_wrapper.v
new file mode 100644
index 0000000..bd8dbf1
--- /dev/null
+++ b/src/tb/tb_wrapper.v
@@ -0,0 +1,44 @@
+`timescale 1ns / 1ps
+
+module tb_wrapper;
+
+ // Inputs
+ reg clk;
+ reg rst_n;
+ reg cs;
+ reg we;
+ reg [7:0] address;
+ reg [31:0] write_data;
+
+ // Outputs
+ wire [31:0] read_data;
+
+ // Instantiate the Unit Under Test (UUT)
+ modexpa7_wrapper uut (
+ .clk(clk),
+ .rst_n(rst_n),
+ .cs(cs),
+ .we(we),
+ .address(address),
+ .write_data(write_data),
+ .read_data(read_data)
+ );
+
+ initial begin
+ // Initialize Inputs
+ clk = 0;
+ rst_n = 0;
+ cs = 0;
+ we = 0;
+ address = 0;
+ write_data = 0;
+
+ // Wait 100 ns for global reset to finish
+ #100;
+
+ // Add stimulus here
+
+ end
+
+endmodule
+