Skip to content

Commit

Permalink
Working example
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneTW committed Aug 5, 2024
1 parent 9a71977 commit da421d0
Show file tree
Hide file tree
Showing 50 changed files with 8,322 additions and 187 deletions.
11 changes: 9 additions & 2 deletions .theia/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"-I/tools/Xilinx/Vitis_HLS/2024.1/lnx64/tools/auto_cc/include",
"-I/tools/Xilinx/Vitis_HLS/2024.1/lnx64/tools/systemc/include",
"-I/home/dkr/simula-one-fpga/vitis_workspace/isp-hls/Vitis_Libraries/vision/L1/include",
"-I/home/dkr/simula-one-fpga/vitis_workspace/isp-hls/include"
]
"-I/home/dkr/simula-one-fpga/vitis_workspace/isp-hls/include",
"-I/home/dkr/simula-one-fpga/vitis_workspace/lossless_compression/../isp-hls/Vitis_Libraries/compression/L1/include",
"-I/home/dkr/simula-one-fpga/vitis_workspace/lossless_compression/include",
"-I/home/dkr/simula-one-fpga/vitis_workspace/lossless_compression/../isp-hls/Vitis_Libraries/data_compression/L1/include/hw",
"-I/home/dkr/simula-one-fpga/vitis_workspace/lossless_compression/../isp-hls/Vitis_Libraries/data_compression/L2/include",
"-I/home/dkr/simula-one-fpga/vitis_workspace/lossless_compression/../isp-hls/Vitis_Libraries/Isecurity/L1/include",
"-I/home/dkr/simula-one-fpga/vitis_workspace/lossless_compression/../isp-hls/Vitis_Libraries/security/L1/include"
],
"git.ignoreLimitWarning": true
}
10 changes: 4 additions & 6 deletions .wsdata/clang_dir_map.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"workspaceRoot": "/home/dkr/simula-one-fpga/vitis_workspace",
"mapping": {
"/home/dkr/simula-one-fpga/hls/src/xf_isp_tb.cpp": "isp-hls",
"isp-hls/xf_isp_accel.cpp": "isp-hls",
"isp-hls/Untitled.cpp": "isp-hls",
"lossless_compression/lz4_compress_stream.cpp": "lossless_compression",
"isp-hls/src/xf_isp_tb.cpp": "isp-hls",
"/home/dkr/simula-one-fpga/hls/src/xf_isp_accel.cpp": "isp-hls",
"isp-hls/xf_isp_tb.cpp": "isp-hls",
"isp-hls/src/xf_isp_accel.cpp": "isp-hls"
"lossless_compression/gzip_compress_multicore_stream.cpp": "lossless_compression",
"isp-hls/src/xf_isp_accel.cpp": "isp-hls",
"lossless_compression/snappy_compress_stream.cpp": "lossless_compression"
}
}
30 changes: 30 additions & 0 deletions imx_init/include/vdma.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#ifndef VDMA_H_N
#define VDMA_H_N

typedef struct vdma_handle
{
/* The device ID of the VDMA */
unsigned int device_id;
/* The state variable to keep track if the initialization is done*/
unsigned int init_done;
/** The XAxiVdma driver instance data. */
XAxiVdma* InstancePtr;
/* The XAxiVdma_DmaSetup structure contains all the necessary information to
* start a frame write or read. */
XAxiVdma_DmaSetup ReadCfg;
XAxiVdma_DmaSetup WriteCfg;
/* Horizontal size of frame */
unsigned int hsize;
/* Vertical size of frame */
unsigned int vsize;
/* Buffer address from where read and write will be done by VDMA */
unsigned int buffer_address;
/* Flag to tell VDMA to interrupt on frame completion*/
unsigned int enable_frm_cnt_intr;
/* The counter to tell VDMA on how many frames the interrupt should happen*/
unsigned int number_of_frame_count;
}vdma_handle;

extern vdma_handle vdma_context[XPAR_XAXIVDMA_NUM_INSTANCES];

#endif
Binary file modified imx_init/src/.cache/clangd/index/main.c.DB6D302DAC464175.idx
Binary file not shown.
306 changes: 306 additions & 0 deletions imx_init/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,312 @@ collect(PROJECT_LIB_DEPS xilstandalone;xiltimer;gloss)
























































































































































































































































































































Expand Down
2 changes: 1 addition & 1 deletion imx_init/src/UserConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set(USER_UNDEFINED_SYMBOLS
# Example 3: Adding ${CMAKE_SOURCE_DIR}/data/include to add data/include from this project.

set(USER_INCLUDE_DIRECTORIES
../include
)

# -----------------------------------------
Expand Down Expand Up @@ -120,7 +121,6 @@ set(USER_LINKER_SCRIPT "${CMAKE_SOURCE_DIR}/lscript.ld")
# Add linker options to be passed, they will be added as extra linker options
# Example : adding -s will pass -s to the linker.
set(USER_LINK_OTHER_FLAGS

)

# -----------------------------------------
Expand Down
Loading

0 comments on commit da421d0

Please sign in to comment.