-
Notifications
You must be signed in to change notification settings - Fork 0
/
Block_Param_Hold.sv
67 lines (55 loc) · 1.21 KB
/
Block_Param_Hold.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
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
63
64
65
66
67
module Block_Param_Hold(
input [2:0] shape_num,
output logic [9:0] shape_size_x,
output logic [9:0] shape_size_y);
always_comb
begin
shape_size_x = 10'b0;
shape_size_y = 10'b0;
if ( (shape_num == 3'd1)) // Horizontal I_block
begin
shape_size_x = 10'd64;
shape_size_y = 10'd16;
end
else if ( (shape_num == 3'd2) ) // O_block
begin
shape_size_x = 10'd32;
shape_size_y = 10'd32;
end
else if ( (shape_num == 3'd3) )
begin
begin
shape_size_x = 10'd48;
shape_size_y = 10'd32;
end
end
else if ( (shape_num == 3'd4) )
begin
begin
shape_size_x = 10'd48;
shape_size_y = 10'd32;
end
end
else if ( (shape_num == 3'd5) )
begin
begin
shape_size_x = 10'd48;
shape_size_y = 10'd32;
end
end
else if ( (shape_num == 3'd6) )
begin
begin
shape_size_x = 10'd48;
shape_size_y = 10'd32;
end
end
else if ( (shape_num == 3'd7) )
begin
begin
shape_size_x = 10'd48;
shape_size_y = 10'd32;
end
end
end
endmodule