x393  1.0
FPGAcodeforElphelNC393camera
sensor_i2c_prot Module Reference
Inheritance diagram for sensor_i2c_prot:
Collaboration diagram for sensor_i2c_prot:

Static Public Member Functions

Always Constructs

ALWAYS_392  ( mclk )
ALWAYS_393  ( mclk )

Public Attributes

Inputs

mrst  
mclk  
i2c_rst  
i2c_start  
active_sda  
early_release_0  
tand  
td   [ 27 : 0 ]
twe  
sda_in  
seq_rd   [ 7 : 0 ]

Outputs

sda  
sda_en  
scl  
i2c_run   reg
i2c_busy   reg
seq_mem_ra   reg [ 1 : 0 ]
seq_mem_re   [ 1 : 0 ]
rdata   [ 7 : 0 ]
rvalid  

Parameters

SENSI2C_TBL_RAH   0
SENSI2C_TBL_RAH_BITS   8
SENSI2C_TBL_RNWREG   8
SENSI2C_TBL_SA   9
SENSI2C_TBL_SA_BITS   7
SENSI2C_TBL_NBWR   16
SENSI2C_TBL_NBWR_BITS   4
SENSI2C_TBL_NBRD   16
SENSI2C_TBL_NBRD_BITS   3
SENSI2C_TBL_NABRD   19
SENSI2C_TBL_DLY   20
SENSI2C_TBL_DLY_BITS   8

Signals

reg[ 7 : 0 ]  twa
wire[ 31 : 0 ]  tdout
reg[ 7 : 0 ]  reg_ah
reg[ 7 : 0 ]  slave_a_rah
reg[ 3 : 0 ]  num_bytes_send
reg[ 7 : 0 ]  i2c_dly
reg[ 3 : 0 ]  bytes_left_send
reg[ 6 : 0 ]  run_reg_wr
reg[ 4 : 0 ]  run_extra_wr
reg[ 7 : 0 ]  run_reg_rd
reg  run_extra_wr_d
reg  run_any_d
reg[ 1 : 0 ]  pre_cmd
reg  first_mem_re
reg[ 2 : 0 ]  mem_re
reg  mem_valid
reg[ 2 : 0 ]  table_re
wire  start_wr_seq_w
wire  start_rd_seq_w
wire  start_extra_seq_w
reg  snd_start
reg  snd_stop
reg  snd9
reg  send_seq_data
reg  send_rd_sa
reg  send_sa_rah
reg  send_rd
reg[ 6 : 0 ]  rd_sa
wire[ 1 : 0 ]  sel_sr_in
reg[ 8 : 0 ]  sr_in
wire  bus_busy
wire  bus_open
wire  i2c_rdy
reg  next_cmd
reg  next_cmd_d
wire  pre_next_cmd
reg  next_byte_wr
reg  read_address_bytes
reg[ 2 : 0 ]  read_data_bytes
reg[ 1 : 0 ]  initial_address
wire[ 3 : 0 ]  initial_address_w
wire  unused
wire  pre_table_re
reg  rnw

Module Instances

sensor_i2c_scl_sda::sensor_i2c_scl_sda_i   Module sensor_i2c_scl_sda
ram18_var_w_var_r::ram18_var_w_var_r_i   Module ram18_var_w_var_r

Detailed Description

Definition at line 41 of file sensor_i2c_prot.v.

Member Function Documentation

ALWAYS_392 (   mclk  
)
Always Construct

Definition at line 171 of file sensor_i2c_prot.v.

ALWAYS_393 (   mclk  
)
Always Construct

Definition at line 331 of file sensor_i2c_prot.v.

Member Data Documentation

SENSI2C_TBL_RAH 0
Parameter

Definition at line 42 of file sensor_i2c_prot.v.

SENSI2C_TBL_RAH_BITS 8
Parameter

Definition at line 43 of file sensor_i2c_prot.v.

SENSI2C_TBL_RNWREG 8
Parameter

Definition at line 44 of file sensor_i2c_prot.v.

SENSI2C_TBL_SA 9
Parameter

Definition at line 45 of file sensor_i2c_prot.v.

SENSI2C_TBL_SA_BITS 7
Parameter

Definition at line 46 of file sensor_i2c_prot.v.

SENSI2C_TBL_NBWR 16
Parameter

Definition at line 47 of file sensor_i2c_prot.v.

SENSI2C_TBL_NBWR_BITS 4
Parameter

Definition at line 48 of file sensor_i2c_prot.v.

SENSI2C_TBL_NBRD 16
Parameter

Definition at line 49 of file sensor_i2c_prot.v.

SENSI2C_TBL_NBRD_BITS 3
Parameter

Definition at line 50 of file sensor_i2c_prot.v.

SENSI2C_TBL_NABRD 19
Parameter

Definition at line 51 of file sensor_i2c_prot.v.

SENSI2C_TBL_DLY 20
Parameter

Definition at line 52 of file sensor_i2c_prot.v.

SENSI2C_TBL_DLY_BITS 8
Parameter

Definition at line 53 of file sensor_i2c_prot.v.

mrst
Input

Definition at line 55 of file sensor_i2c_prot.v.

mclk
Input

Definition at line 56 of file sensor_i2c_prot.v.

i2c_rst
Input

Definition at line 57 of file sensor_i2c_prot.v.

i2c_start
Input

Definition at line 58 of file sensor_i2c_prot.v.

active_sda
Input

Definition at line 59 of file sensor_i2c_prot.v.

Definition at line 60 of file sensor_i2c_prot.v.

tand
Input

Definition at line 62 of file sensor_i2c_prot.v.

td [ 27 : 0 ]
Input

Definition at line 63 of file sensor_i2c_prot.v.

twe
Input

Definition at line 64 of file sensor_i2c_prot.v.

sda_in
Input

Definition at line 65 of file sensor_i2c_prot.v.

sda
Output

Definition at line 66 of file sensor_i2c_prot.v.

sda_en
Output

Definition at line 67 of file sensor_i2c_prot.v.

scl
Output

Definition at line 68 of file sensor_i2c_prot.v.

i2c_run reg
Output

Definition at line 69 of file sensor_i2c_prot.v.

i2c_busy reg
Output

Definition at line 70 of file sensor_i2c_prot.v.

seq_mem_ra reg [ 1 : 0 ]
Output

Definition at line 71 of file sensor_i2c_prot.v.

seq_mem_re [ 1 : 0 ]
Output

Definition at line 72 of file sensor_i2c_prot.v.

seq_rd [ 7 : 0 ]
Input

Definition at line 73 of file sensor_i2c_prot.v.

rdata [ 7 : 0 ]
Output

Definition at line 74 of file sensor_i2c_prot.v.

rvalid
Output

Definition at line 75 of file sensor_i2c_prot.v.

twa
Signal

Definition at line 102 of file sensor_i2c_prot.v.

tdout
Signal

Definition at line 103 of file sensor_i2c_prot.v.

reg_ah
Signal

Definition at line 104 of file sensor_i2c_prot.v.

slave_a_rah
Signal

Definition at line 105 of file sensor_i2c_prot.v.

Definition at line 106 of file sensor_i2c_prot.v.

i2c_dly
Signal

Definition at line 107 of file sensor_i2c_prot.v.

Definition at line 110 of file sensor_i2c_prot.v.

run_reg_wr
Signal

Definition at line 111 of file sensor_i2c_prot.v.

run_extra_wr
Signal

Definition at line 112 of file sensor_i2c_prot.v.

run_reg_rd
Signal

Definition at line 113 of file sensor_i2c_prot.v.

Definition at line 114 of file sensor_i2c_prot.v.

run_any_d
Signal

Definition at line 115 of file sensor_i2c_prot.v.

pre_cmd
Signal

Definition at line 116 of file sensor_i2c_prot.v.

first_mem_re
Signal

Definition at line 117 of file sensor_i2c_prot.v.

mem_re
Signal

Definition at line 120 of file sensor_i2c_prot.v.

mem_valid
Signal

Definition at line 121 of file sensor_i2c_prot.v.

table_re
Signal

Definition at line 122 of file sensor_i2c_prot.v.

Definition at line 127 of file sensor_i2c_prot.v.

Definition at line 128 of file sensor_i2c_prot.v.

Definition at line 129 of file sensor_i2c_prot.v.

snd_start
Signal

Definition at line 135 of file sensor_i2c_prot.v.

snd_stop
Signal

Definition at line 136 of file sensor_i2c_prot.v.

snd9
Signal

Definition at line 137 of file sensor_i2c_prot.v.

send_seq_data
Signal

Definition at line 139 of file sensor_i2c_prot.v.

send_rd_sa
Signal

Definition at line 140 of file sensor_i2c_prot.v.

send_sa_rah
Signal

Definition at line 141 of file sensor_i2c_prot.v.

send_rd
Signal

Definition at line 142 of file sensor_i2c_prot.v.

rd_sa
Signal

Definition at line 143 of file sensor_i2c_prot.v.

sel_sr_in
Signal

Definition at line 144 of file sensor_i2c_prot.v.

sr_in
Signal

Definition at line 147 of file sensor_i2c_prot.v.

bus_busy
Signal

Definition at line 148 of file sensor_i2c_prot.v.

bus_open
Signal

Definition at line 149 of file sensor_i2c_prot.v.

i2c_rdy
Signal

Definition at line 151 of file sensor_i2c_prot.v.

next_cmd
Signal

Definition at line 152 of file sensor_i2c_prot.v.

next_cmd_d
Signal

Definition at line 153 of file sensor_i2c_prot.v.

pre_next_cmd
Signal

Definition at line 154 of file sensor_i2c_prot.v.

next_byte_wr
Signal

Definition at line 155 of file sensor_i2c_prot.v.

Definition at line 157 of file sensor_i2c_prot.v.

Definition at line 158 of file sensor_i2c_prot.v.

Definition at line 160 of file sensor_i2c_prot.v.

Definition at line 161 of file sensor_i2c_prot.v.

unused
Signal

Definition at line 162 of file sensor_i2c_prot.v.

pre_table_re
Signal

Definition at line 164 of file sensor_i2c_prot.v.

rnw
Signal

Definition at line 165 of file sensor_i2c_prot.v.

ram18_var_w_var_r ram18_var_w_var_r_i
Module Instance

Definition at line 336 of file sensor_i2c_prot.v.

sensor_i2c_scl_sda sensor_i2c_scl_sda_i
Module Instance

Definition at line 307 of file sensor_i2c_prot.v.


The documentation for this Module was generated from the following files: