-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtester.v
43 lines (37 loc) · 818 Bytes
/
tester.v
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
module tester(
input clk,
input test, busy,
input [7:0] prod,
output start_test, pass,
output [7:0] pattern, count
);
wire [7:0] sign;
//Input Pattern Genarator
lfsr GENERATOR (
.clk(clk),
.seed_b(seed_b),
.shift(shift),
.q(pattern)
);
//Output Response Compactor
misr COMPACTOR (
.clk(clk),
.reset_b(reset_b),
.shift(shift),
.d(prod),
.q(sign)
);
controller CONTROL (
.clk(clk),
.test(test),
.busy(busy),
.seed_b(seed_b),
.reset_b(reset_b),
.shift(shift),
.start_test(start_test),
.done(done),
.count(count)
);
assign pass = (sign == 8'b0101_1111) && done;
//Signature is compared with the valid one when the testing is complete.
endmodule