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
dfd591b7
Commit
dfd591b7
authored
Oct 27, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simulating/bug fixing
parent
20cada45
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
45 deletions
+17
-45
bit_stuffer_27_32.v
compressor_jp/bit_stuffer_27_32.v
+0
-34
huffman_merge_code_literal.v
compressor_jp/huffman_merge_code_literal.v
+3
-3
x393_testbench03.sav
x393_testbench03.sav
+14
-8
No files found.
compressor_jp/bit_stuffer_27_32.v
View file @
dfd591b7
...
...
@@ -91,40 +91,6 @@ module bit_stuffer_27_32#(
2'h3
:
data2
<=
{
6'b0
,
data1
};
endcase
if
(
stage
[
0
])
case
(
dlen1
[
4
:
0
])
/*
5'h00: dmask2_rom <= 32'hffffffff;
5'h01: dmask2_rom <= 32'hfffffffe;
5'h02: dmask2_rom <= 32'hfffffffc;
5'h03: dmask2_rom <= 32'hfffffff8;
5'h04: dmask2_rom <= 32'hfffffff0;
5'h05: dmask2_rom <= 32'hffffffe0;
5'h06: dmask2_rom <= 32'hffffffc0;
5'h07: dmask2_rom <= 32'hffffff80;
5'h08: dmask2_rom <= 32'hffffff00;
5'h09: dmask2_rom <= 32'hfffffe00;
5'h0a: dmask2_rom <= 32'hfffffc00;
5'h0b: dmask2_rom <= 32'hfffff800;
5'h0c: dmask2_rom <= 32'hfffff000;
5'h0d: dmask2_rom <= 32'hffffe000;
5'h0e: dmask2_rom <= 32'hffffc000;
5'h0f: dmask2_rom <= 32'hffff8000;
5'h10: dmask2_rom <= 32'hffff0000;
5'h11: dmask2_rom <= 32'hfffe0000;
5'h12: dmask2_rom <= 32'hfffc0000;
5'h13: dmask2_rom <= 32'hfff80000;
5'h14: dmask2_rom <= 32'hfff00000;
5'h15: dmask2_rom <= 32'hffe00000;
5'h16: dmask2_rom <= 32'hffc00000;
5'h17: dmask2_rom <= 32'hff800000;
5'h18: dmask2_rom <= 32'hff000000;
5'h19: dmask2_rom <= 32'hfe000000;
5'h1a: dmask2_rom <= 32'hfc000000;
5'h1b: dmask2_rom <= 32'hf8000000;
5'h1c: dmask2_rom <= 32'hf0000000;
5'h1d: dmask2_rom <= 32'he0000000;
5'h1e: dmask2_rom <= 32'hc0000000;
5'h1f: dmask2_rom <= 32'h80000000;
*/
5'h00
:
dmask2_rom
<=
32'hffffffff
;
5'h01
:
dmask2_rom
<=
32'h7fffffff
;
5'h02
:
dmask2_rom
<=
32'h3fffffff
;
...
...
compressor_jp/huffman_merge_code_literal.v
View file @
dfd591b7
...
...
@@ -25,7 +25,7 @@ module huffman_merge_code_literal(
input
clk
,
input
in_valid
,
input
[
15
:
0
]
huff_code
,
input
[
3
:
0
]
huff_code_len
,
input
[
3
:
0
]
huff_code_len
,
// 0 means 16
input
[
10
:
0
]
literal
,
input
[
3
:
0
]
literal_len
,
output
reg
out_valid
,
// latency 5 from input
...
...
@@ -45,7 +45,7 @@ module huffman_merge_code_literal(
reg
[
4
:
0
]
olen3
;
reg
[
3
:
0
]
hlen0
;
reg
[
3
:
0
]
hlen1
;
reg
[
3
:
0
]
hlen2
;
reg
[
4
:
0
]
hlen2
;
reg
[
3
:
0
]
hlen2m1
;
reg
[
1
:
0
]
hlen3m1
;
reg
[
3
:
0
]
valid
;
...
...
@@ -76,7 +76,7 @@ module huffman_merge_code_literal(
endcase
llen2
<=
llen1
;
huff2
<=
huff1
;
hlen2
<=
hlen1
;
hlen2
<=
{~
(
|
hlen1
)
,
hlen1
}
;
hlen2m1
<=
hlen1
-
1
;
// s0
valid
[
2
]
<=
valid
[
1
]
;
// layer 3
...
...
x393_testbench03.sav
View file @
dfd591b7
[*]
[*] GTKWave Analyzer v3.3.66 (w)1999-2015 BSI
[*] Tue Oct 27 0
5:53:02
2015
[*] Tue Oct 27 0
7:42:39
2015
[*]
[dumpfile] "/home/andrey/git/x393/simulation/x393_testbench03-20151026231135006.fst"
[dumpfile_mtime] "Tue Oct 27 05:52:50 2015"
[dumpfile_size] 257666662
[savefile] "/home/andrey/git/x393/x393_testbench03.sav"
[timestart] 147
9904
00
[timestart] 147
8739
00
[size] 1823 1180
[pos] 1920 0
*-1
5.037372 148077500 108390000 -1
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
*-1
6.209452 148132600 108390000 148070000
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
[treeopen] x393_testbench03.
[treeopen] x393_testbench03.par12_hispi_psp4l0_i.
[treeopen] x393_testbench03.par12_hispi_psp4l0_i.cmprs_channel_block[0].
...
...
@@ -64,7 +64,7 @@
[treeopen] x393_testbench03.x393_i.sensors393_i.sensor_channel_block[3].sensor_channel_i.
[treeopen] x393_testbench03.x393_i.sensors393_i.sensor_channel_block[3].sensor_channel_i.genblk1.
[sst_width] 340
[signals_width]
404
[signals_width]
342
[sst_expanded] 1
[sst_vpaned_height] 514
@820
...
...
@@ -1955,6 +1955,7 @@ x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.i_hu
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.i_huffman.gotEOB
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.i_huffman.gotLastBlock
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.i_huffman.gotLastWord
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.i_huffman.ready_to_flush
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.i_huffman.typeDC
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.i_huffman.typeAC
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.i_huffman.tbsel_YC0
...
...
@@ -2019,6 +2020,8 @@ x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuf
@22
[color] 2
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuffer393_i.q[15:0]
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuffer393_i.imgsz32[19:0]
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuffer393_i.etrax_dma[3:0]
@28
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuffer393_i.start_time_out
@22
...
...
@@ -2056,8 +2059,8 @@ x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuf
@28
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuffer393_i.send8
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuffer393_i.send8h
@29
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.stuffer393_i.send8l
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huffman_stuffer_meta_i.bit_stuffer_metadata_i.running
@1000200
-stuffer
@800200
...
...
@@ -2134,7 +2137,7 @@ x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huff
-
@1000200
-huffman_singleclk
@
c
00200
@
8
00200
-stuffer32
@28
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huffman_stuffer_meta_i.bit_stuffer_27_32_i.ds
...
...
@@ -2169,7 +2172,7 @@ x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huff
-group_end
@200
-
@1
401
200
@1
000
200
-stuffer32
@800200
-new_compressor
...
...
@@ -2200,11 +2203,14 @@ x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huff
@22
[color] 2
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huffman_stuffer_meta_i.data_out[31:0]
@2
8
@2
9
[color] 2
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huffman_stuffer_meta_i.data_out_valid
@28
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huffman_stuffer_meta_i.done
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huffman_stuffer_meta_i.running
@22
x393_testbench03.x393_i.compressor393_i.cmprs_channel_block[0].jp_channel_i.huffman_stuffer_meta_i.bit_stuffer_metadata_i.imgsz4[21:0]
@200
-
@1000200
...
...
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