Chip123 科技應用創新平台

標題: [急]verilog pipeline bubble 設計 [打印本頁]

作者: HsuanChihCh@FB    時間: 2016-10-19 11:25 PM
標題: [急]verilog pipeline bubble 設計
我目前在設計一個pipeline的電路,且有防bubble機制,但在設計的過程中有些問題~
% J' A5 K% i9 S0 n0 q想請問一下大家!!2 g: |# S3 T. z" \6 o
該怎麼設計?7 U6 p- N' X; \% y5 I' f: C/ P" ?2 m
以下是我需要的功能~
* N; I. w: B8 |6 S  A
Module name
my_pipeline
Signal
Direction
Description
clk
input
System clock
rst_n
input
reset signal, active low
d_in[15:0]
input
DUT input data
d_rdy
input
DUT input data ready
d_full
input
The next stage data full signal
pp_d[15:0]
output
DUT output data
pp_rdy
output
DUT output data ready
pp_full
output
DUT full signal to preceding stage

6 X! B/ Z8 T5 W# t
! J. L1 `, g3 @( `0 f/ v/ N
' X) _5 y6 |! uThereare 5 pipe stages in our pipelining design. 4 R, O0 N* L& v/ H
It means that the input data can beobserved at the output port after 5 clock cycles.
4 s% K% r: d0 t2 P8 x; hAll the stages must be readyto proceed at the same time.
) v$ d# S& `; b' V/ NWhen d_full is active, you have to keep the outputdata until d_full is disabled. ' k9 d$ V1 Z2 E. f7 t  A7 f; ~8 i
If d_full is active and all the pipe stages arebusy, you have to generate pp_full to inform the preceding stages to hold data. ' N, {9 c% ]8 M2 m
The pipeline bubbles haveto be eliminated when d_full is active.* R3 c3 b+ ]' _; e" q, n; y

9 C+ M, X" ~; R$ W
' |) r3 J8 G4 z. u6 \9 W
( E8 j1 E  x( W2 n& M1 V. N

& d1 R8 e$ c' J$ N2 O% {- W

7 p& G1 Y" Z" ^  g9 ]" Q; Z) k% y; f
5 @& P! i4 q* W% x
1 s$ d/ L( E% n& h# g3 ?# r8 R$ G. A
# t& \- o* ]" l! P5 B. c: r
( u6 a8 ~: k& M

" Z0 |6 G$ @1 u6 _( R. P
( Q' ]( x( l2 ^( J: C, m9 N: r
% N( m( U# E" x; @/ t+ u, _4 W9 a8 B

6 W; z6 G% N9 {( r: x. A* A; Y7 F9 i  E' m* C

8 E1 n; B* z2 l6 u6 d2 N& L# @( X* u0 L+ Y2 d

( F8 z* t; O& _  S5 S6 x
, s6 \# y. p5 [% A5 n2 L% A7 {# Q# j/ O




歡迎光臨 Chip123 科技應用創新平台 (http://www.chip123.com.tw/) Powered by Discuz! X3.2