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
8c19274c
Commit
8c19274c
authored
Oct 12, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simulated/fixed HiSPi simulation module
parent
4d63229c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
26 deletions
+100
-26
par12_hispi_psp4l.v
simulation_modules/par12_hispi_psp4l.v
+9
-7
x393_testbench02.sav
x393_testbench02.sav
+91
-19
No files found.
simulation_modules/par12_hispi_psp4l.v
View file @
8c19274c
...
...
@@ -83,7 +83,7 @@ module par12_hispi_psp4l#(
if
(
!
vact
)
next_sof
<=
1
;
else
if
(
hact_d
)
next_sof
<=
0
;
if
(
!
vact_d
)
next_line_pclk
<=
1
;
if
(
!
vact_d
)
next_line_pclk
<=
0
;
else
next_line_pclk
<=
!
vact
||
(
hact
&&
!
hact_d
&&
!
next_sof
)
;
next_frame_pclk
<=
vact_d
&&
hact
&&
!
hact_d
&&
next_sof
;
...
...
@@ -288,9 +288,10 @@ module par12_hispi_psp4l_lane#(
reg
[
7
:
0
]
seq_eol_sol
;
reg
embed
;
wire
dav_rdy
=
dav
&&
rdy
;
wire
is_sync
=
din
[
1
1
]
;
wire
is_sync
=
din
[
1
2
]
;
wire
[
11
:
0
]
din_filt
=
(
din
[
11
:
1
]
==
11'h0
)
?
12'h001
:
din
[
11
:
0
]
;
wire
pause
=
seq_eol_sol
[
4
]
&&
!
next_line
;
// wire pause = seq_eol_sol[4] && !next_line;
wire
pause
=
seq_eol_sol
[
3
]
&&
!
next_line
;
assign
rdy
=
!
sr_in_av
;
always
@
(
posedge
clk
)
begin
...
...
@@ -298,7 +299,7 @@ module par12_hispi_psp4l_lane#(
else
bcntr
<=
bcntr
+
1
;
if
(
rst
)
sr
<=
'bx
;
else
if
(
bcntr
==
0
)
sr
<=
sr_in_av
?
sr_in
:
IDL
;
else
if
(
bcntr
==
0
)
sr
<=
(
sr_in_av
&&
!
pause
)
?
sr_in
:
IDL
;
else
sr
<=
MSB_FIRST
?
{
sr
[
10
:
0
]
,
1'b0
}
:
{
1'b0
,
sr
[
11
:
1
]
};
sout
<=
MSB_FIRST
?
sr
[
11
]
:
sr
[
0
]
;
...
...
@@ -315,7 +316,7 @@ module par12_hispi_psp4l_lane#(
else
if
(
bcntr
==
0
)
seq_eof
<=
seq_eof
>>
1
;
if
(
rst
)
seq_eol_sol
<=
0
;
else
if
(
dav_rdy
&&
is_sync
&&
(
din
[
3
:
0
]
==
SYNC_SOL
))
seq_eol_sol
<=
80
;
else
if
(
dav_rdy
&&
is_sync
&&
(
din
[
3
:
0
]
==
SYNC_SOL
))
seq_eol_sol
<=
'h
80
;
else
if
((
bcntr
==
0
)
&&
!
pause
)
seq_eol_sol
<=
seq_eol_sol
>>
1
;
if
(
dav_rdy
)
sr_in
<=
is_sync
?
12'hfff
:
din_filt
;
...
...
@@ -329,8 +330,9 @@ module par12_hispi_psp4l_lane#(
end
if
(
rst
)
sr_in_av
<=
0
;
else
if
(
dav_rdy
)
sr_in_av
<=
0
;
else
if
(
bcntr
==
0
)
sr_in_av
<=
(
|
seq_sof
[
3
:
1
])
||
(
|
seq_eof
[
3
:
1
])
||
((
|
seq_eol_sol
[
7
:
1
])
&&
!
pause
)
;
else
if
(
dav_rdy
)
sr_in_av
<=
1
;
// else if (bcntr == 0) sr_in_av <= (|seq_sof[3:1]) || (|seq_eof[3:1]) || ((|seq_eol_sol[7:1]) && !pause);
else
if
(
bcntr
==
0
)
sr_in_av
<=
(
|
seq_sof
[
3
:
1
])
||
(
|
seq_eof
[
3
:
1
])
||
(
|
seq_eol_sol
[
7
:
1
])
;
sof_sol_sent
<=
(
bcntr
==
0
)
&&
(
seq_sof
[
1
]
||
seq_eol_sol
[
1
])
;
end
...
...
x393_testbench02.sav
View file @
8c19274c
[*]
[*] GTKWave Analyzer v3.3.66 (w)1999-2015 BSI
[*] Mon Oct 12
05:49:01
2015
[*] Mon Oct 12
22:20:36
2015
[*]
[dumpfile] "/home/andrey/git/x393/simulation/x393_testbench02-2015101
1232311425
.fst"
[dumpfile_mtime] "Mon Oct 12
05:45:3
1 2015"
[dumpfile_size]
8614018
5
[dumpfile] "/home/andrey/git/x393/simulation/x393_testbench02-2015101
2155137508
.fst"
[dumpfile_mtime] "Mon Oct 12
22:13:2
1 2015"
[dumpfile_size]
7628954
5
[savefile] "/home/andrey/git/x393/x393_testbench02.sav"
[timestart]
740121
00
[timestart]
1075600
00
[size] 1823 1180
[pos] 1922 0
*-1
7.205360 74450000
102872500 116192500 -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
8.415243 108503491
102872500 116192500 -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_testbench02.
[treeopen] x393_testbench02.compressor_control.
[treeopen] x393_testbench02.par12_hispi_psp4l_i.
...
...
@@ -101,7 +101,7 @@
[treeopen] x393_testbench02.x393_i.timing393_i.camsync393_i.
[treeopen] x393_testbench02.x393_i.timing393_i.rtc393_i.
[sst_width] 382
[signals_width] 3
8
8
[signals_width] 3
1
8
[sst_expanded] 1
[sst_vpaned_height] 611
@820
...
...
@@ -248,43 +248,107 @@ x393_testbench02.par12_hispi_psp4l_i.fifo_we
x393_testbench02.par12_hispi_psp4l_i.fifo_di[48:0]
x393_testbench02.par12_hispi_psp4l_i.fifo_ra[11:0]
x393_testbench02.par12_hispi_psp4l_i.rdy[3:0]
@28
x393_testbench02.par12_hispi_psp4l_i.fifo_dav
@800022
x393_testbench02.par12_hispi_psp4l_i.frames_open[1:0]
@28
(0)x393_testbench02.par12_hispi_psp4l_i.frames_open[1:0]
(1)x393_testbench02.par12_hispi_psp4l_i.frames_open[1:0]
@1001200
-group_end
@200
-
@28
x393_testbench02.par12_hispi_psp4l_i.next_frame_pclk
x393_testbench02.par12_hispi_psp4l_i.next_frame_oclk
x393_testbench02.par12_hispi_psp4l_i.next_line_pclk
x393_testbench02.par12_hispi_psp4l_i.next_line_oclk
@22
x393_testbench02.par12_hispi_psp4l_i.lines_available[1:0]
@28
x393_testbench02.par12_hispi_psp4l_i.line_available
@22
x393_testbench02.par12_hispi_psp4l_i.fifo_out[48:0]
@1000200
-par12_hispi_sel
@200
-
@80020
1
@80020
0
-hispi_lane0
@2
3
@2
2
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.bcntr[3:0]
@2
9
@2
8
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.clk
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.dav
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.dav_rdy
@2
3
@2
2
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.din[12:0]
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.din_filt[11:0]
@2
9
@2
8
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.embed
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.is_sync
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.next_line
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.pause
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.rdy
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.rst
@
23
@
800022
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eof[3:0]
@28
(0)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eof[3:0]
(1)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eof[3:0]
(2)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eof[3:0]
(3)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eof[3:0]
@1001200
-group_end
@800022
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
@28
(0)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
(1)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
(2)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
(3)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
(4)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
(5)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
(6)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
(7)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_eol_sol[7:0]
@1001200
-group_end
@800022
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_sof[3:0]
@29
@28
(0)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_sof[3:0]
(1)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_sof[3:0]
(2)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_sof[3:0]
(3)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.seq_sof[3:0]
@1001200
-group_end
@28
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sof_sol_sent
@29
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sout
@23
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
@22
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr_in[11:0]
@29
@800022
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
@28
(0)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(1)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(2)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(3)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(4)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(5)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(6)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(7)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(8)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(9)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(10)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
(11)x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr[11:0]
@1001200
-group_end
@28
x393_testbench02.par12_hispi_psp4l_i.cmprs_channel_block[0].par12_hispi_psp4l_lane_i.sr_in_av
@100020
1
@100020
0
-hispi_lane0
@800200
-par12_hspi
...
...
@@ -335,8 +399,16 @@ x393_testbench02.par12_hispi_psp4l_i.pxd_d[47:0]
x393_testbench02.par12_hispi_psp4l_i.rdy[3:0]
@28
x393_testbench02.par12_hispi_psp4l_i.rst
@22
@
c000
22
x393_testbench02.par12_hispi_psp4l_i.sdata[3:0]
@28
(0)x393_testbench02.par12_hispi_psp4l_i.sdata[3:0]
(1)x393_testbench02.par12_hispi_psp4l_i.sdata[3:0]
(2)x393_testbench02.par12_hispi_psp4l_i.sdata[3:0]
(3)x393_testbench02.par12_hispi_psp4l_i.sdata[3:0]
@1401200
-group_end
@22
x393_testbench02.par12_hispi_psp4l_i.sdata_dly[3:0]
@28
x393_testbench02.par12_hispi_psp4l_i.sof_sol_sent
...
...
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