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
f18a13be
Commit
f18a13be
authored
Aug 15, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging color conversion
parent
de641880
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
83 deletions
+87
-83
cmprs_tile_mode2_decode.v
compressor_jp/cmprs_tile_mode2_decode.v
+85
-81
x393_testbench02.tf
x393_testbench02.tf
+2
-2
No files found.
compressor_jp/cmprs_tile_mode2_decode.v
View file @
f18a13be
...
...
@@ -57,8 +57,10 @@ module cmprs_tile_mode2_decode #(
reg
jp4_dc_improved_r
;
reg
hdr_r
;
reg
[
3
:
0
]
bayer_phase_onehot
;
always
@
(
posedge
xclk
)
if
(
pre_first_in
)
begin
reg
first_in
;
always
@
(
posedge
xclk
)
begin
first_in
<=
pre_first_in
;
if
(
pre_first_in
)
begin
converter_type_r
[
2
:
0
]
<=
converter_type
[
2
:
0
]
;
jp4_dc_improved_r
<=
jp4_dc_improved
;
hdr_r
<=
hdr
;
...
...
@@ -69,7 +71,8 @@ module cmprs_tile_mode2_decode #(
(
bayer_phase
[
1
:
0
]
==
2'h2
)
?
1'b1
:
1'b0
,
(
bayer_phase
[
1
:
0
]
==
2'h1
)
?
1'b1
:
1'b0
,
(
bayer_phase
[
1
:
0
]
==
2'h0
)
?
1'b1
:
1'b0
};
end
if
(
first_in
)
begin
case
(
converter_type_r
)
CMPRS_COLOR18:
begin
component_numsL
<=
6'h10
;
// component_num [0]
...
...
@@ -118,14 +121,14 @@ module cmprs_tile_mode2_decode #(
end
CMPRS_MONO8:
begin
/*
/*
component_numsL <= 6'h00; // TODO: Implement, put actuqal data in this and other fields
component_numsM <= 6'h00;
component_numsH <= 6'h30;
component_colors <= 6'h30;
component_first <= 6'h31;
color_enable <= 1'b0;
*/
*/
end
default:
begin
...
...
@@ -139,6 +142,7 @@ module cmprs_tile_mode2_decode #(
end
endcase
end
end
endmodule
x393_testbench02.tf
View file @
f18a13be
...
...
@@ -1888,8 +1888,8 @@ task setup_sensor_channel;
3, // num_macro_cols_m1; // number of macroblock colums minus 1
1, // num_macro_rows_m1; // number of macroblock rows minus 1
1, // input [31:0] left_margin; // left margin of the first pixel (0..31) for 32-pixel wide colums in memory access
'h
c0,
// input [31:0] colorsat_blue; //color saturation for blue (10 bits) //'h90 for 100%
'h
90,
// colorsat_red; //color saturation for red (10 bits) // 'b6 for 100%
'h
120,
// input [31:0] colorsat_blue; //color saturation for blue (10 bits) //'h90 for 100%
'h
16c,
// colorsat_red; //color saturation for red (10 bits) // 'b6 for 100%
0); // input [31:0] coring; // coring value
// TODO: calculate widths correctly!
setup_compressor_memory (
...
...
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