x393  1.0
FPGAcodeforElphelNC393camera
round_robin Module Reference
Inheritance diagram for round_robin:

Public Member Functions

Functions

func_selrr  [BITS : 0 ] ( rq[ 1 << BITS - 1 : 0 ] :Input , cur_chn[BITS - 1 : 0 ] :Input )
func_demux  [(1<<BITS)- 1 : 0 ] ( en:Input , sel[BITS - 1 : 0 ] :Input )

Static Public Member Functions

Always Constructs

ALWAYS_538  ( clk )

Public Attributes

Inputs

clk  
srst  
rq   [ 1 << BITS - 1 : 0 ]
en  

Outputs

grant   reg
chn   [BITS - 1 : 0 ]
grant_chn   reg [ 1 << BITS - 1 : 0 ]

Parameters

FIXED_PRIORITY   0
BITS   2

Signals

reg[BITS - 1 : 0 ]  last_chn
wire  valid
wire[BITS - 1 : 0 ]  next_chn
wire  pre_grant_w
reg  grant_r

Detailed Description

Definition at line 41 of file round_robin.v.

Member Function Documentation

ALWAYS_538 (   clk  
)
Always Construct

Definition at line 64 of file round_robin.v.

[(1<<BITS)- 1 : 0 ] func_demux (   Input en
  Input [BITS - 1 : 0 ] sel  
)
Function

Definition at line 98 of file round_robin.v.

[BITS : 0 ] func_selrr (   Input [ 1 << BITS - 1 : 0 ] rq
  Input [BITS - 1 : 0 ] cur_chn  
)
Function

Definition at line 78 of file round_robin.v.

Member Data Documentation

FIXED_PRIORITY 0
Parameter

Definition at line 42 of file round_robin.v.

BITS 2
Parameter

Definition at line 43 of file round_robin.v.

clk
Input

Definition at line 45 of file round_robin.v.

srst
Input

Definition at line 46 of file round_robin.v.

rq [ 1 << BITS - 1 : 0 ]
Input

Definition at line 47 of file round_robin.v.

en
Input

Definition at line 48 of file round_robin.v.

grant reg
Output

Definition at line 49 of file round_robin.v.

chn [BITS - 1 : 0 ]
Output

Definition at line 50 of file round_robin.v.

grant_chn reg [ 1 << BITS - 1 : 0 ]
Output

Definition at line 51 of file round_robin.v.

last_chn
Signal

Definition at line 53 of file round_robin.v.

valid
Signal

Definition at line 54 of file round_robin.v.

next_chn
Signal

Definition at line 55 of file round_robin.v.

pre_grant_w
Signal

Definition at line 56 of file round_robin.v.

grant_r
Signal

Definition at line 57 of file round_robin.v.


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