From 86ebdd05f0753693a1d86e27ea48f7e897e4fe90 Mon Sep 17 00:00:00 2001 From: cturek Date: Thu, 21 Jul 2022 17:59:10 +0000 Subject: [PATCH] Division working too --- pipelined/srt/srt.sv | 2 +- pipelined/srt/testbench.sv | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pipelined/srt/srt.sv b/pipelined/srt/srt.sv index 157be2e7f..a7216b9ff 100644 --- a/pipelined/srt/srt.sv +++ b/pipelined/srt/srt.sv @@ -2,7 +2,7 @@ // srt.sv // // Written: David_Harris@hmc.edu 13 January 2022 -// Modified: cturek@hmc.edu June 2022 +// Modified: cturek@hmc.edu July 2022 // // Purpose: Combined Divide and Square Root Floating Point and Integer Unit // diff --git a/pipelined/srt/testbench.sv b/pipelined/srt/testbench.sv index 39696af44..7a4e1897b 100644 --- a/pipelined/srt/testbench.sv +++ b/pipelined/srt/testbench.sv @@ -72,7 +72,7 @@ module testbench; // Equip Int test or Sqrt test assign Int = 1'b0; - assign Sqrt = 1'b1; + assign Sqrt = 1'b0; // Divider srt srt(.clk, .Start(req), @@ -101,7 +101,7 @@ module testbench; begin testnum = 0; errors = 0; - $readmemh ("sqrttestvectors", Tests); + $readmemh ("testvectors", Tests); Vec = Tests[testnum]; a = Vec[`mema]; {asign, aExp, afrac} = a;