Skip to content

Commit 652b96a

Browse files
committed
preparing to actually implement stuff
0 parents  commit 652b96a

File tree

11 files changed

+154
-0
lines changed

11 files changed

+154
-0
lines changed

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
.vscode
2+
.venv
3+
*.pin
4+
*.pof
5+
*.sof
6+
*.qpf
7+
*.qsf
8+
*.sid
9+
*.map.*
10+
*.sta.*
11+
*.fit.*
12+
bitstream.tcl
13+
bitstream
14+
incremental_db
15+
*.hdb
16+
*.cdb
17+
*.ddb
18+
*.idb
19+
*.rdb
20+
*.logdb
21+
*.qmsg
22+
*.hsd
23+
*.ammdb
24+
db
25+
*.rpt
26+
*.sld
27+
*.jdi
28+
*.done
29+
*.pow.*
30+
Makefile
31+
project
32+
project.tcl
33+
files.tcl
34+
*.vcd
35+
*.vvp
36+
run.command
37+
modelsim.ini
38+
transcript
39+
work/
40+
*.wlf
41+
ip_cores/

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
sudo: required
2+
language: python
3+
os: linux
4+
addons:
5+
apt:
6+
update: false
7+
packages:
8+
- lib32z1
9+
- lib32stdc++6
10+
- libexpat1:i386
11+
- libc6:i386
12+
- libsm6:i386
13+
- libncurses5:i386
14+
- libx11-6:i386
15+
- zlib1g:i386
16+
- libxext6:i386
17+
- libxft2:i386
18+
19+
install:
20+
- pip install -r requirements.txt
21+
- stat /home/travis/intelFPGA/19.1/modelsim_ase || (curl 'http://download.altera.com/akdlm/software/acdsinst/19.1std/670/ib_installers/ModelSimSetup-19.1.0.670-linux.run' -o ModelSimSetup.run && chmod +x ModelSimSetup.run && travis_wait 30 ./ModelSimSetup.run --mode unattended --accept_eula 1 && sed -i 's/linux_rh60/linux/g' /home/travis/intelFPGA/19.1/modelsim_ase/vco )
22+
script:
23+
- export PATH=$PATH:/home/travis/intelFPGA/19.1/modelsim_ase/bin
24+
# - cd ./sim/demosaic_tb/ && hdlmake fetch && hdlmake && make
25+
- cd -
26+
27+
cache:
28+
directories:
29+
- /home/travis/intelFPGA/

LICENSE-APACHE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2020 Sameer Puri
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

LICENSE-MIT

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Sameer Puri
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Manifest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
modules = {
2+
"local": "./src/"
3+
}

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Image processing
2+
3+
[![Build Status](https://travis-ci.com/hdl-util/image.svg?branch=master)](https://travis-ci.com/hdl-util/image)
4+
5+
SystemVerilog code for image processing tasks like [demosaicing](https://en.wikipedia.org/wiki/Demosaicing).
6+
7+
## Why?
8+
9+
I implemented raw camera video playback, but wanted a place to keep the demosaic algorithm logic and share it with others.
10+
11+
## Usage
12+
13+
1. Take files from `src/` and add them to your own project. If you use [hdlmake](https://hdlmake.readthedocs.io/en/master/), you can add this repository itself as a remote module.
14+
1. Other helpful modules are also available in this GitHub organization.
15+
1. Consult the testbench in `test/demosaic_tb.sv` for example usage.
16+
1. Read through the parameter descriptions in `demosaic.sv` and tailor any instantiations to your situation.
17+
1. Please create an issue if you run into a problem or have any questions.
18+
19+
## To-do List
20+
21+
* [x] [Malvar-He-Cutler](https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/Demosaicing_ICASSP04.pdf) demosaic algorithm
22+
* [ ] More upon request
23+
24+
## Reference Documents
25+
26+
* [High-Quality Linear Interpolation for Demosaicing of Bayer-Patterned Color Images](https://www.microsoft.com/en-us/research/publication/high-quality-linear-interpolation-for-demosaicing-of-bayer-patterned-color-images/)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hdlmake==3.3

sim/demosaic_tb/Manifest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
action = "simulation"
2+
sim_tool = "modelsim"
3+
sim_top = "demosaic_tb"
4+
5+
sim_post_cmd = "vsim -novopt -do ../vsim.do -c demosaic_tb"
6+
7+
modules = {
8+
"local" : [ "../../test/" ],
9+
}

sim/vsim.do

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
run -all;

src/Manifest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
files = [
2+
# "demosaic.sv"
3+
]

0 commit comments

Comments
 (0)