Skip to content

Commit

Permalink
adding flat version for bp
Browse files Browse the repository at this point in the history
  • Loading branch information
xtofalex committed Jun 4, 2024
1 parent 3ece08c commit c048565
Show file tree
Hide file tree
Showing 2 changed files with 1,102,559 additions and 3 deletions.
19 changes: 16 additions & 3 deletions designs/black_parrot/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
include ../Makefile.inc

all: black_parrot_edited.v black_parrot_snl.v
all: black_parrot_edited.v black_parrot_snl.v black_parrot_flat_edited.v black_parrot_flat_snl.v

black_parrot_snl/snl.mf: black_parrot.v
export PYTHONPATH=${SET_PYTHONPATH}; \
${PYTHON_ENV} ${NAJA_EDIT} -f verilog -t snl -i $< -o black_parrot_snl -p ${PRIMITIVES}/nangate45.py

black_parrot_flat_snl/snl.mf: black_parrot_flat.v
export PYTHONPATH=${SET_PYTHONPATH}; \
${PYTHON_ENV} ${NAJA_EDIT} -f verilog -t snl -i $< -o black_parrot_flat_snl -p ${PRIMITIVES}/nangate45.py

black_parrot_snl.v: black_parrot_snl/snl.mf
export PYTHONPATH=${SET_PYTHONPATH}; \
${PYTHON_ENV} ${NAJA_EDIT} -f snl -t verilog -i black_parrot_snl -o black_parrot_snl.v

black_parrot_flat_snl.v: black_parrot_flat_snl/snl.mf
export PYTHONPATH=${SET_PYTHONPATH}; \
${PYTHON_ENV} ${NAJA_EDIT} -f snl -t verilog -i black_parrot_flat_snl -o black_parrot_flat_snl.v

black_parrot_edited.v: ${SCRIPTS}/pre_edit.py ${SCRIPTS}/post_edit.py black_parrot_snl/snl.mf
export PYTHONPATH=${SET_PYTHONPATH}; \
${PYTHON_ENV} ${NAJA_EDIT} -f snl -t verilog -i black_parrot_snl -o black_parrot_edited.v -e ${SCRIPTS}/pre_edit.py -a dle -z ${SCRIPTS}/post_edit.py
${PYTHON_ENV} ${NAJA_EDIT} -f snl -t verilog -i black_parrot_snl -o black_parrot_edited.v -e ${SCRIPTS}/pre_edit.py -a all -z ${SCRIPTS}/post_edit.py

black_parrot_flat_edited.v: ${SCRIPTS}/pre_edit.py ${SCRIPTS}/post_edit.py black_parrot_flat_snl/snl.mf
export PYTHONPATH=${SET_PYTHONPATH}; \
${PYTHON_ENV} ${NAJA_EDIT} -f snl -t verilog -i black_parrot_flat_snl -o black_parrot_flat_edited.v -e ${SCRIPTS}/pre_edit.py -a all -z ${SCRIPTS}/post_edit.py

clean:
-rm -rf __pycache__ black_parrot_snl black_parrot_snl.v black_parrot_edited.v *.log *.stats
-rm -rf __pycache__ black_parrot_snl black_parrot_snl.v black_parrot_edited.v *.log *.stats \
black_parrot_flat_snl black_parrot_flat_snl.v black_parrot_flat_edited.v
Loading

0 comments on commit c048565

Please sign in to comment.