Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
bca95494
Commit
bca95494
authored
Dec 01, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on dtt-iv: dct-iv/dst-iv
parent
1f81e59b
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
641 additions
and
2 deletions
+641
-2
dtt_iv8_1d.v
dsp/dtt_iv8_1d.v
+12
-2
dtt_iv_8x8.v
dsp/dtt_iv_8x8.v
+629
-0
No files found.
dsp/dtt_iv8_1d.v
View file @
bca95494
...
...
@@ -66,7 +66,7 @@ module dtt_iv8_1d#(
input
clk
,
input
rst
,
input
en
,
input
dst_in
,
// 0 - dct, 1 - dst.
Valid with X6
input
dst_in
,
// 0 - dct, 1 - dst.
@ start/restart
input
[
WIDTH
-
1
:
0
]
d_in
,
// X2-X7-X3-X4-X5-X6-X0-X1-*-X3-X5-X4-*-X6-X7-*
input
start
,
// one cycle before first X6 input
output
[
OUT_WIDTH
-
1
:
0
]
dout
,
...
...
@@ -139,6 +139,8 @@ module dtt_iv8_1d#(
reg
en_out_r
;
reg
en_out_r2
;
reg
dst_pre
;
// keeps dst_in value for second stage
reg
dst_out
;
// controls source of dsp_neg_m_2 mux
assign
en_out
=
en_out_r
;
...
...
@@ -191,9 +193,17 @@ module dtt_iv8_1d#(
else
if
(
start
||
restart
)
run_in
<=
1
;
else
if
(
phase_cnt
==
15
)
run_in
<=
0
;
if
(
start
||
restart
)
dst_pre
<=
dst_in
;
if
(
phase_cnt
==
12
)
dst_out
<=
dst_pre
;
dsp_neg_m_2
<=
dst_out
?
dsp_neg_m_2_dst
:
dsp_neg_m_2_dct
;
if
(
rst
)
run_out
<=
0
;
else
if
(
phase_cnt
==
13
)
run_out
<=
run_in
;
if
(
rst
||
(
!
run_in
&&
!
run_out
))
phase_cnt
<=
0
;
else
phase_cnt
<=
phase_cnt
+
1
;
...
...
@@ -268,7 +278,7 @@ module dtt_iv8_1d#(
dsp_ceb1_2
<=
p00
|
p03
|
p08
|
p11
;
dsp_ceb2_2
<=
p04
|
p07
|
p12
|
p15
;
dsp_selb_2
<=
p00
|
p03
|
p05
|
p06
|
p08
|
p11
|
p13
|
p14
;
dsp_neg_m_2
<=
p03
|
p06
|
p12
|
p15
;
//
dsp_neg_m_2 <= p03 | p06 | p12 | p15 ;
dsp_neg_m_2_dct
<=
p02
|
p05
|
p11
|
p14
;
dsp_neg_m_2_dst
<=
p00
|
p01
|
p02
|
p05
|
p06
|
p07
|
p08
|
p09
|
p11
|
p14
;
dsp_accum_2
<=
p00
|
p02
|
p04
|
p06
|
p08
|
p10
|
p12
|
p14
;
...
...
dsp/dtt_iv_8x8.v
0 → 100644
View file @
bca95494
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment