OpenCores
URL https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [camera_link/] [camera_link.v] - Blame information for rev 15

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 qaztronic
//
2
//
3
//
4
 
5
 
6
module camera_link
7
(
8
  input [3:0] x_data_in,
9
  input       x_clk,
10
 
11
  input [3:0] y_data_in,
12
  input       y_clk,
13
 
14
  input [3:0] z_data_in,
15
  input       z_clk,
16
 
17
  input       reset
18
);
19
 
20
  // --------------------------------------------------------------------
21
  //
22
  wire  [27:0]  x_data_out;
23
  wire          x_dval      = x_data_out[26];
24
  wire          x_fval      = x_data_out[25];
25
  wire          x_lval      = x_data_out[24];
26
  wire          x_spare     = x_data_out[23];
27
 
28
  channel_link
29
    i_channel_link_x
30
      (
31
          .clk_in(x_clk),
32
          .data_in(x_data_in),
33
          .data_out(x_data_out),
34
 
35
          .reset(reset)
36
      );
37
 
38
 
39
  // --------------------------------------------------------------------
40
  //
41
  wire  [27:0]  y_data_out;
42
  wire          y_dval      = y_data_out[26];
43
  wire          y_fval      = y_data_out[25];
44
  wire          y_lval      = y_data_out[24];
45
  wire          y_spare     = y_data_out[23];
46
 
47
  channel_link
48
    i_channel_link_y
49
      (
50
          .clk_in(y_clk),
51
          .data_in(y_data_in),
52
          .data_out(y_data_out),
53
 
54
          .reset(reset)
55
      );
56
 
57
 
58
  // --------------------------------------------------------------------
59
  //
60
  wire  [27:0]  z_data_out;
61
  wire          z_dval      = z_data_out[26];
62
  wire          z_fval      = z_data_out[25];
63
  wire          z_lval      = z_data_out[24];
64
  wire          z_spare     = z_data_out[23];
65
 
66
  channel_link
67
    i_channel_link_z
68
      (
69
          .clk_in(z_clk),
70
          .data_in(z_data_in),
71
          .data_out(z_data_out),
72
 
73
          .reset(reset)
74
      );
75
 
76
 
77
  // --------------------------------------------------------------------
78
  //
79
  wire [7:0] cl_port_a = { x_data_out[5], x_data_out[27], x_data_out[6], x_data_out[4:0] };
80
  wire [7:0] cl_port_b = { x_data_out[11], x_data_out[10], x_data_out[14:12], x_data_out[9:7] };
81
  wire [7:0] cl_port_c = { x_data_out[17:16], x_data_out[22:18], x_data_out[15] };
82
  wire [7:0] cl_port_d = { y_data_out[5], y_data_out[27], y_data_out[6], y_data_out[4:0] };
83
  wire [7:0] cl_port_e = { y_data_out[11], y_data_out[10], y_data_out[14:12], y_data_out[9:7] };
84
  wire [7:0] cl_port_f = { y_data_out[17:16], y_data_out[22:18], y_data_out[15] };
85
  wire [7:0] cl_port_g = { z_data_out[5], z_data_out[27], z_data_out[6], z_data_out[4:0] };
86
  wire [7:0] cl_port_h = { z_data_out[11], z_data_out[10], z_data_out[14:12], z_data_out[9:7] };
87
 
88
  wire [13:0] fpa_pixel_0 = { cl_port_a[5:0], cl_port_b };
89
  wire [13:0] fpa_pixel_1 = { cl_port_c[5:0], cl_port_d };
90
  wire [13:0] fpa_pixel_2 = { cl_port_e[5:0], cl_port_f };
91
  wire [13:0] fpa_pixel_3 = { cl_port_g[5:0], cl_port_h };
92
 
93
endmodule
94
 
95
 
96
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.