Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oc_jpegencode_vdt
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
oc_jpegencode_vdt
Commits
7dbd4f7c
Commit
7dbd4f7c
authored
Jul 03, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updtated project settings to current VDT
parent
2bb85ab0
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
45 deletions
+42
-45
com.elphel.vdt.FPGA_project.prefs
...project_setup/.settings/com.elphel.vdt.FPGA_project.prefs
+8
-7
com.elphel.vdt.cocotb.prefs
.eclipse_project_setup/.settings/com.elphel.vdt.cocotb.prefs
+7
-8
com.elphel.vdt.iverilog.prefs
...pse_project_setup/.settings/com.elphel.vdt.iverilog.prefs
+3
-3
com.elphel.vdt.FPGA_project.prefs
.settings/com.elphel.vdt.FPGA_project.prefs
+8
-7
com.elphel.vdt.cocotb.prefs
.settings/com.elphel.vdt.cocotb.prefs
+7
-8
com.elphel.vdt.iverilog.prefs
.settings/com.elphel.vdt.iverilog.prefs
+3
-3
test_jpeg_top.py
cocotb/test_jpeg_top.py
+6
-9
No files found.
.eclipse_project_setup/.settings/com.elphel.vdt.FPGA_project.prefs
View file @
7dbd4f7c
FPGA_project_0_SimulationTopFile=code/jpeg_top_TB.v
FPGA_project_@_DUTTopFile=code/jpeg_top.v
FPGA_project_1_SimulationTopModule=UUT
FPGA_project_@_DUTTopModule=jpeg_top
FPGA_project_2_DUTTopFile=code/jpeg_top.v
FPGA_project_@_ImplementationTopFile=code/jpeg_top.v
FPGA_project_2_ImplementationTopFile=code/jpeg_top.v
FPGA_project_@_ImplementationTopModule=jpeg_top
FPGA_project_3_DUTTopModule=jpeg_top
FPGA_project_@_SimulationTopFile=code/jpeg_top_TB.v
FPGA_project_3_ImplementationTopModule=jpeg_top
FPGA_project_@_SimulationTopModule=UUT
com.elphel.store.context.FPGA_project=FPGA_project_0_SimulationTopFile<-@\#\#@->FPGA_project_1_SimulationTopModule<-@\#\#@->FPGA_project_2_ImplementationTopFile<-@\#\#@->FPGA_project_3_ImplementationTopModule<-@\#\#@->FPGA_project_2_DUTTopFile<-@\#\#@->FPGA_project_3_DUTTopModule<-@\#\#@->
com.elphel.store.context.FPGA_project=FPGA_project_@_SimulationTopFile<-@\#\#@->FPGA_project_@_DUTTopModule<-@\#\#@->FPGA_project_@_ImplementationTopModule<-@\#\#@->FPGA_project_@_ImplementationTopFile<-@\#\#@->FPGA_project_@_DUTTopFile<-@\#\#@->FPGA_project_@_SimulationTopModule<-@\#\#@->
com.elphel.store.version.FPGA_project=1.0
eclipse.preferences.version=1
eclipse.preferences.version=1
.eclipse_project_setup/.settings/com.elphel.vdt.cocotb.prefs
View file @
7dbd4f7c
cocotb_105_CocotbCUSTOM_COMPILE_DEPS=IVERILOG_INCLUDE.v<-@\#\#@->
cocotb_@_CocotbCUSTOM_COMPILE_DEPS=IVERILOG_INCLUDE.v<-@\#\#@->
cocotb_110_COCOTB_ANSI_OUTPUT=true
cocotb_@_CocotbIncludeDir=${verilog_project_loc}<-@\#\#@->
cocotb_111_CocotbMODULE=test_jpeg_top<-@\#\#@->
cocotb_@_CocotbMODULE=test_jpeg_top<-@\#\#@->
cocotb_113_MakeCleanPatterns=*.pyc results.xml<-@\#\#@->*.jpg<-@\#\#@->
cocotb_@_GTKWaveSavFile=jpeg_top_01.gtkw
cocotb_116_GTKWaveSavFile=jpeg_top_01.sav
cocotb_@_MakeCleanPatterns=*.pyc results.xml<-@\#\#@->*.jpg<-@\#\#@->
cocotb_117_CocotbIncludeDir=${verilog_project_loc}<-@\#\#@->
com.elphel.store.context.cocotb=cocotb_@_CocotbMODULE<-@\#\#@->cocotb_@_GTKWaveSavFile<-@\#\#@->cocotb_@_CocotbIncludeDir<-@\#\#@->cocotb_@_MakeCleanPatterns<-@\#\#@->cocotb_@_CocotbCUSTOM_COMPILE_DEPS<-@\#\#@->
cocotb_120_GTKWaveSavFile=jpeg_top_01.gtkw
com.elphel.store.version.cocotb=0.8
com.elphel.store.context.cocotb=cocotb_120_GTKWaveSavFile<-@\#\#@->cocotb_113_MakeCleanPatterns<-@\#\#@->cocotb_117_CocotbIncludeDir<-@\#\#@->cocotb_111_CocotbMODULE<-@\#\#@->cocotb_105_CocotbCUSTOM_COMPILE_DEPS<-@\#\#@->cocotb_110_COCOTB_ANSI_OUTPUT<-@\#\#@->cocotb_116_GTKWaveSavFile<-@\#\#@->
eclipse.preferences.version=1
eclipse.preferences.version=1
.eclipse_project_setup/.settings/com.elphel.vdt.iverilog.prefs
View file @
7dbd4f7c
com.elphel.store.context.iverilog=iverilog_120_GTKWaveSavFile<-@\#\#@->iverilog_123_GTKWaveSavFile<-@\#\#@->
com.elphel.store.context.iverilog=iverilog_@_GTKWaveSavFile<-@\#\#@->
com.elphel.store.version.iverilog=1.1
eclipse.preferences.version=1
eclipse.preferences.version=1
iverilog_120_GTKWaveSavFile=jpeg_top_01.gtkw
iverilog_@_GTKWaveSavFile=jpeg_top_01.gtkw
iverilog_123_GTKWaveSavFile=jpegencode_01.sav
.settings/com.elphel.vdt.FPGA_project.prefs
View file @
7dbd4f7c
FPGA_project_0_SimulationTopFile=code/jpeg_top_TB.v
FPGA_project_@_DUTTopFile=code/jpeg_top.v
FPGA_project_1_SimulationTopModule=UUT
FPGA_project_@_DUTTopModule=jpeg_top
FPGA_project_2_DUTTopFile=code/jpeg_top.v
FPGA_project_@_ImplementationTopFile=code/jpeg_top.v
FPGA_project_2_ImplementationTopFile=code/jpeg_top.v
FPGA_project_@_ImplementationTopModule=jpeg_top
FPGA_project_3_DUTTopModule=jpeg_top
FPGA_project_@_SimulationTopFile=code/jpeg_top_TB.v
FPGA_project_3_ImplementationTopModule=jpeg_top
FPGA_project_@_SimulationTopModule=UUT
com.elphel.store.context.FPGA_project=FPGA_project_0_SimulationTopFile<-@\#\#@->FPGA_project_1_SimulationTopModule<-@\#\#@->FPGA_project_2_ImplementationTopFile<-@\#\#@->FPGA_project_3_ImplementationTopModule<-@\#\#@->FPGA_project_2_DUTTopFile<-@\#\#@->FPGA_project_3_DUTTopModule<-@\#\#@->
com.elphel.store.context.FPGA_project=FPGA_project_@_SimulationTopFile<-@\#\#@->FPGA_project_@_DUTTopModule<-@\#\#@->FPGA_project_@_ImplementationTopModule<-@\#\#@->FPGA_project_@_ImplementationTopFile<-@\#\#@->FPGA_project_@_DUTTopFile<-@\#\#@->FPGA_project_@_SimulationTopModule<-@\#\#@->
com.elphel.store.version.FPGA_project=1.0
eclipse.preferences.version=1
eclipse.preferences.version=1
.settings/com.elphel.vdt.cocotb.prefs
View file @
7dbd4f7c
cocotb_105_CocotbCUSTOM_COMPILE_DEPS=IVERILOG_INCLUDE.v<-@\#\#@->
cocotb_@_CocotbCUSTOM_COMPILE_DEPS=IVERILOG_INCLUDE.v<-@\#\#@->
cocotb_110_COCOTB_ANSI_OUTPUT=true
cocotb_@_CocotbIncludeDir=${verilog_project_loc}<-@\#\#@->
cocotb_111_CocotbMODULE=test_jpeg_top<-@\#\#@->
cocotb_@_CocotbMODULE=test_jpeg_top<-@\#\#@->
cocotb_113_MakeCleanPatterns=*.pyc results.xml<-@\#\#@->*.jpg<-@\#\#@->
cocotb_@_GTKWaveSavFile=jpeg_top_01.gtkw
cocotb_116_GTKWaveSavFile=jpeg_top_01.sav
cocotb_@_MakeCleanPatterns=*.pyc results.xml<-@\#\#@->*.jpg<-@\#\#@->
cocotb_117_CocotbIncludeDir=${verilog_project_loc}<-@\#\#@->
com.elphel.store.context.cocotb=cocotb_@_CocotbMODULE<-@\#\#@->cocotb_@_GTKWaveSavFile<-@\#\#@->cocotb_@_CocotbIncludeDir<-@\#\#@->cocotb_@_MakeCleanPatterns<-@\#\#@->cocotb_@_CocotbCUSTOM_COMPILE_DEPS<-@\#\#@->
cocotb_120_GTKWaveSavFile=jpeg_top_01.gtkw
com.elphel.store.version.cocotb=0.8
com.elphel.store.context.cocotb=cocotb_120_GTKWaveSavFile<-@\#\#@->cocotb_113_MakeCleanPatterns<-@\#\#@->cocotb_117_CocotbIncludeDir<-@\#\#@->cocotb_111_CocotbMODULE<-@\#\#@->cocotb_105_CocotbCUSTOM_COMPILE_DEPS<-@\#\#@->cocotb_110_COCOTB_ANSI_OUTPUT<-@\#\#@->cocotb_116_GTKWaveSavFile<-@\#\#@->
eclipse.preferences.version=1
eclipse.preferences.version=1
.settings/com.elphel.vdt.iverilog.prefs
View file @
7dbd4f7c
com.elphel.store.context.iverilog=iverilog_120_GTKWaveSavFile<-@\#\#@->iverilog_123_GTKWaveSavFile<-@\#\#@->
com.elphel.store.context.iverilog=iverilog_@_GTKWaveSavFile<-@\#\#@->
com.elphel.store.version.iverilog=1.1
eclipse.preferences.version=1
eclipse.preferences.version=1
iverilog_120_GTKWaveSavFile=jpeg_top_01.gtkw
iverilog_@_GTKWaveSavFile=jpeg_top_01.gtkw
iverilog_123_GTKWaveSavFile=jpegencode_01.sav
cocotb/test_jpeg_top.py
View file @
7dbd4f7c
...
@@ -35,13 +35,12 @@ def compare(i1, i2):
...
@@ -35,13 +35,12 @@ def compare(i1, i2):
@
cocotb
.
coroutine
@
cocotb
.
coroutine
def
process_image
(
dut
,
filename
=
""
,
debug
=
False
,
threshold
=
0.22
):
def
process_image
(
dut
,
filename
=
""
,
debug
=
False
,
threshold
=
0.22
):
"""Run an image file through the jpeg encoder and compare the result"""
"""Run an image file through the jpeg encoder and compare the result"""
cocotb
.
fork
(
Clock
(
dut
.
clk
,
100
)
.
start
())
#Overwriting debug (original) with the one from env
debug
=
os
.
getenv
(
'COCOTB_DEBUG'
)
# None/1
yield
Timer
(
10
)
yield
Timer
(
10
)
# cocotb.fork(Clock(dut.clk, 100).start())
"""
driver = ImageDriver(dut)
driver
=
ImageDriver
(
dut
)
monitor
=
JpegMonitor
(
dut
)
monitor
=
JpegMonitor
(
dut
)
if
debug
:
# pragma: no cover
if
debug
:
# pragma: no cover
...
@@ -62,10 +61,8 @@ def process_image(dut, filename="", debug=False, threshold=0.22):
...
@@ -62,10 +61,8 @@ def process_image(dut, filename="", debug=False, threshold=0.22):
if
difference
>
threshold
:
# pragma: no cover
if
difference
>
threshold
:
# pragma: no cover
raise
TestFailure
(
"Resulting image file was too different (
%
f >
%
f)"
%
raise
TestFailure
(
"Resulting image file was too different (
%
f >
%
f)"
%
(
difference
,
threshold
))
(
difference
,
threshold
))
"""
"""
tf
=
TestFactory
(
process_image
)
tf
=
TestFactory
(
process_image
)
tf
.
add_option
(
"filename"
,
[
os
.
path
.
join
(
'test_images'
,
f
)
tf
.
add_option
(
"filename"
,
[
os
.
path
.
join
(
'test_images'
,
f
)
for
f
in
os
.
listdir
(
'test_images'
)])
for
f
in
os
.
listdir
(
'test_images'
)])
tf
.
generate_tests
()
tf
.
generate_tests
()
\ No newline at end of file
"""
\ No newline at end of file
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