forked from Github_Repos/cvw
Division working too
This commit is contained in:
parent
9c694b887e
commit
ddc237f6bc
@ -2,7 +2,7 @@
|
|||||||
// srt.sv
|
// srt.sv
|
||||||
//
|
//
|
||||||
// Written: David_Harris@hmc.edu 13 January 2022
|
// 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
|
// Purpose: Combined Divide and Square Root Floating Point and Integer Unit
|
||||||
//
|
//
|
||||||
|
@ -72,7 +72,7 @@ module testbench;
|
|||||||
|
|
||||||
// Equip Int test or Sqrt test
|
// Equip Int test or Sqrt test
|
||||||
assign Int = 1'b0;
|
assign Int = 1'b0;
|
||||||
assign Sqrt = 1'b1;
|
assign Sqrt = 1'b0;
|
||||||
|
|
||||||
// Divider
|
// Divider
|
||||||
srt srt(.clk, .Start(req),
|
srt srt(.clk, .Start(req),
|
||||||
@ -101,7 +101,7 @@ module testbench;
|
|||||||
begin
|
begin
|
||||||
testnum = 0;
|
testnum = 0;
|
||||||
errors = 0;
|
errors = 0;
|
||||||
$readmemh ("sqrttestvectors", Tests);
|
$readmemh ("testvectors", Tests);
|
||||||
Vec = Tests[testnum];
|
Vec = Tests[testnum];
|
||||||
a = Vec[`mema];
|
a = Vec[`mema];
|
||||||
{asign, aExp, afrac} = a;
|
{asign, aExp, afrac} = a;
|
||||||
|
Loading…
Reference in New Issue
Block a user