-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vivado xsim xci compatibility. compatible with vivado synthesis.
- Loading branch information
1 parent
573b1f0
commit c9ed487
Showing
4 changed files
with
103 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#Auto generated by Edalize jinja | ||
include config.mk | ||
|
||
all: xsim.dir/$(TARGET)/xsimk | ||
|
||
# {{ xci_list}} | ||
|
||
{%if xci_list %} | ||
xci.prj: xci.tcl | ||
vivado -mode batch -source xci.tcl | ||
cat $(TARGET).prj >> xci.prj | ||
xsim.dir/$(TARGET)/xsimk: $(SRC_FILES) xci.prj | ||
xelab $(TOPLEVEL) -prj xci.prj -snapshot $(TARGET) $(VLOG_DEFINES) $(VLOG_INCLUDES) $(GEN_PARAMS) $(XELAB_OPTIONS) -debug all | ||
{%else%} | ||
xsim.dir/$(TARGET)/xsimk: $(SRC_FILES) | ||
xelab $(TOPLEVEL) -prj $(TARGET).prj -snapshot $(TARGET) $(VLOG_DEFINES) $(VLOG_INCLUDES) $(GEN_PARAMS) $(XELAB_OPTIONS) -debug all | ||
{%endif%} | ||
|
||
run: {{ default_run }} | ||
|
||
run-dflt: xsim.dir/$(TARGET)/xsimk | ||
xsim -R $(XSIM_OPTIONS) $(TARGET) $(EXTRA_OPTIONS) | ||
|
||
run-vcd: xsim.dir/$(TARGET)/xsimk | ||
xsim -t vcd.tcl $(XSIM_OPTIONS) $(TARGET) $(EXTRA_OPTIONS) | ||
|
||
run-gui: xsim.dir/$(TARGET)/xsimk | ||
xsim --gui $(XSIM_OPTIONS) $(TARGET) $(EXTRA_OPTIONS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#Auto generated by Edalize | ||
TARGET = {{target}} | ||
TOPLEVEL = {{toplevel}} | ||
|
||
VLOG_DEFINES = {{vlog_defines}} | ||
VLOG_INCLUDES = {{vlog_includes}} | ||
GEN_PARAMS = {{gen_params}} | ||
|
||
XELAB_OPTIONS = {{xelab_options}} | ||
XSIM_OPTIONS = {{xsim_options}} | ||
|
||
SRC_FILES={{" ".join(src_list)}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
create_project -part {{xci_part}} myProject -force | ||
{% for n in xci_list %} | ||
read_ip {{ n }} | ||
{% endfor %} | ||
generate_target simulation [ get_files *.xci ] | ||
#export_simulation -force -simulator xsim -of_objects [get_files *.xci ] | ||
#get_files -all -of_objects [get_files *.xci] | ||
set f [get_files -compile_order sources -used_in simulation -of [get_files *.xci] -quiet] | ||
set fd [ open "xci.prj" "w" ] | ||
foreach d $f { | ||
puts $fd "verilog work $d" | ||
} | ||
close $fd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters