-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsigma_test.sv
executable file
·30 lines (29 loc) · 1.37 KB
/
sigma_test.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ADDING PI AND NEPER NUMBER TOGETHER, WITH 32 BIT SIGNED MAGNITUDE REPRESENTATION AND 17 BIT OF FRACTIONS
// CREATED BY MEHDI SAFAEE, WINTER 2018-2019
`include "config.svh"
module sigma_test;
//##############################################################################################
//##############################################################################################
// PARAMETERs-----------------------------------------------------------------------------------
// INPUT AND OUTPUTS----------------------------------------------------------------------------
// VARIABLES -----------------------------------------------------------------------------------
logic [31:0] a[0:2][1];
logic [31:0] c;
// MODULES INSTANTIATIONS-----------------------------------------------------------------------
sigma3 sigma3_0
(
.a(a),
.c(c)
);
// INITIALIZATIONS------------------------------------------------------------------------------
// MAIN-----------------------------------------------------------------------------------------
always
begin
#100;
a[0][0] = 32'h0006487e;
a[1][0] = 32'h0006487e;
a[2][0] = 32'h0006487e;
end
//##############################################################################################
//##############################################################################################
endmodule