-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestbenchCORDIC.v
More file actions
62 lines (55 loc) · 1.38 KB
/
testbenchCORDIC.v
File metadata and controls
62 lines (55 loc) · 1.38 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 01.12.2020 21:37:50
// Design Name:
// Module Name: testbenchCORDIC
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module testbenchCORDIC;
reg clk;
reg [2:0]mode;
//integer mode;
reg[31:0] in,in2;
wire[31:0] x,y,z;
CORDIC_BEHAVIORAL r1(in,in2,mode,clk,x,y,z);
initial
begin
clk=1'b1;
end
always
#10 clk=~clk;
initial
begin
mode = 3'b000;
in = 32'b00000000000111100000000000000000;
/*
mode = 3'b001;
in = 32'b00000000000000010000000000000000;
mode = 3'b010;
in=32'b00000000000111100000000000000000;
in2= 32'b00000000000000100000000000000000;
mode = 3'b011;
in=32'b00000000000111100000000000000000;
in2= 32'b00000000000000100000000000000000;
mode = 3'b100;
in = 32'b00000000000000010000000000000000;
mode = 3'b101;
in = 32'b00000000000000001000000000000000;*/
#300 $finish;
end
initial
$monitor("X= ",x," Y= ",y," Z= ",z);
endmodule