Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
recolic committed Sep 3, 2018
1 parent 42d6a9c commit a9a04a5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,7 @@ vivadow gui
This is a bash script, so it can be easily injected. `Vivadofile` and `.vwc` constraint will be directly `source`d. **Never** trust Vivadofile uploaded by others!

If you give a wrong top\_module name, *silly vivado* will accept it, and generate bitstream for a **randomly-taken** module(with long time spent), then report error.

## TODO

Support bridging C/C++ into systemverilog via SV DPI. However my vivado 2018 failed to simulate it, saying `xsim.dir/tb_dpi_behav/xsimk: error while loading shared libraries: unexpected PLT reloc type 0x00`.
15 changes: 15 additions & 0 deletions vivado_cc_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

function backup_var () {
_var_name="$1"
export "_vivado_wrapper_backup_$_var_name"="$$$_var_name"
unset "$_var_name"
}
function recover_var () {
_var_name="$1"
export "$_var_name"="$$_vivado_wrapper_backup_$_var_name"
unset "_vivado_wrapper_backup_$_var_name"
}

backup_var a

0 comments on commit a9a04a5

Please sign in to comment.