-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from antmicro/develop
Develop
- Loading branch information
Showing
19 changed files
with
34,405 additions
and
8 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
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
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 @@ | ||
create_clock -period 10 bufg |
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,42 @@ | ||
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) | ||
current_dir := $(patsubst %/,%,$(dir $(mkfile_path))) | ||
TOP := top | ||
VERILOG := ${current_dir}/baselitex_arty.v \ | ||
${current_dir}/VexRiscv_Linux.v | ||
MEM_INIT := ${current_dir}/mem.init \ | ||
${current_dir}/mem_1.init \ | ||
${current_dir}/mem_2.init | ||
PARTNAME := xc7a35tcsg324-1 | ||
DEVICE := xc7a50t_test | ||
BITSTREAM_DEVICE := artix7 | ||
PCF := ${current_dir}/arty.pcf | ||
SDC := ${current_dir}/arty.sdc | ||
BUILDDIR := build | ||
|
||
all: ${BUILDDIR}/${TOP}.bit | ||
|
||
${BUILDDIR}: | ||
mkdir ${BUILDDIR} | ||
ln -s ${MEM_INIT} ${BUILDDIR} | ||
|
||
${BUILDDIR}/${TOP}.eblif: | ${BUILDDIR} | ||
cd ${BUILDDIR} && synth -t ${TOP} -v ${VERILOG} -d ${BITSTREAM_DEVICE} -p ${PARTNAME} 2>&1 > /dev/null | ||
|
||
${BUILDDIR}/${TOP}.net: ${BUILDDIR}/${TOP}.eblif | ||
cd ${BUILDDIR} && pack -e ${TOP}.eblif -d ${DEVICE} -s ${SDC} 2>&1 > /dev/null | ||
|
||
${BUILDDIR}/${TOP}.place: ${BUILDDIR}/${TOP}.net | ||
cd ${BUILDDIR} && place -e ${TOP}.eblif -d ${DEVICE} -p ${PCF} -n ${TOP}.net -P ${PARTNAME} -s ${SDC} 2>&1 > /dev/null | ||
|
||
${BUILDDIR}/${TOP}.route: ${BUILDDIR}/${TOP}.place | ||
cd ${BUILDDIR} && route -e ${TOP}.eblif -d ${DEVICE} -s ${SDC} 2>&1 > /dev/null | ||
|
||
${BUILDDIR}/${TOP}.fasm: ${BUILDDIR}/${TOP}.route | ||
cd ${BUILDDIR} && write_fasm -e ${TOP}.eblif -d ${DEVICE} | ||
|
||
${BUILDDIR}/${TOP}.bit: ${BUILDDIR}/${TOP}.fasm | ||
cd ${BUILDDIR} && write_bitstream -d ${BITSTREAM_DEVICE} -f ${TOP}.fasm -p ${PARTNAME} -b ${TOP}.bit | ||
|
||
clean: | ||
rm -rf ${BUILDDIR} | ||
|
Oops, something went wrong.