2023-03-07 19:02:40 +01:00
|
|
|
build:
|
|
|
|
|
python3 -m build
|
|
|
|
|
|
|
|
|
|
pypi_upload: build
|
|
|
|
|
python3 -m twine upload --repository testpypi dist/*
|
|
|
|
|
|
2023-03-07 19:12:03 +01:00
|
|
|
lint:
|
|
|
|
|
python3 -m black src/manta/__init__.py
|
|
|
|
|
python3 -m black src/manta/__main__.py
|
2023-03-07 19:02:40 +01:00
|
|
|
|
2023-03-24 04:50:09 +01:00
|
|
|
serve_docs:
|
|
|
|
|
mkdocs serve
|
|
|
|
|
|
|
|
|
|
total_loc:
|
|
|
|
|
find . -type f \( -iname \*.sv -o -iname \*.v -o -iname \*.py -o -iname \*.yaml -o -iname \*.yml -o -iname \*.md \) | sed 's/.*/"&"/' | xargs wc -l
|
|
|
|
|
|
|
|
|
|
real_loc:
|
|
|
|
|
find src ${TB} -type f \( -iname \*.sv -o -iname \*.v -o -iname \*.py -o -iname \*.yaml -o -iname \*.md \) | sed 's/.*/"&"/' | xargs wc -l
|
|
|
|
|
|
|
|
|
|
test: api_gen func_sim
|
|
|
|
|
|
|
|
|
|
# API Generation Tests
|
|
|
|
|
api_gen:
|
|
|
|
|
python3 test/api_gen/run_test.py
|
|
|
|
|
|
|
|
|
|
# Functional Simulation
|
|
|
|
|
func_sim: io_core_tb logic_analyzer_tb bit_fifo_tb bridge_rx_tb bridge_tx_tb fifo_tb lut_ram_tb uart_tb uart_tx_tb
|
2023-03-16 14:38:17 +01:00
|
|
|
|
|
|
|
|
io_core_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/io_core_tb.sv -y src/manta
|
2023-03-16 14:38:17 +01:00
|
|
|
vvp sim.out
|
|
|
|
|
rm sim.out
|
2023-03-07 19:02:40 +01:00
|
|
|
|
2023-03-15 20:57:42 +01:00
|
|
|
logic_analyzer_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/logic_analyzer_tb.sv -y src/manta
|
2023-03-15 20:57:42 +01:00
|
|
|
vvp sim.out
|
|
|
|
|
rm sim.out
|
|
|
|
|
|
|
|
|
|
bit_fifo_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/bit_fifo_tb.sv -y src/manta
|
2023-03-07 19:02:40 +01:00
|
|
|
vvp sim.out
|
|
|
|
|
rm sim.out
|
|
|
|
|
|
2023-03-15 20:57:42 +01:00
|
|
|
bridge_rx_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/bridge_rx_tb.sv -y src/manta
|
2023-03-07 19:02:40 +01:00
|
|
|
vvp sim.out
|
|
|
|
|
rm sim.out
|
|
|
|
|
|
2023-03-15 20:57:42 +01:00
|
|
|
bridge_tx_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/bridge_tx_tb.sv -y src/manta
|
2023-03-07 19:02:40 +01:00
|
|
|
vvp sim.out
|
|
|
|
|
rm sim.out
|
|
|
|
|
|
|
|
|
|
fifo_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/fifo_tb.sv -y src/manta
|
2023-03-07 19:02:40 +01:00
|
|
|
vvp sim.out >> /dev/null # this one is noisy right now
|
|
|
|
|
rm sim.out
|
|
|
|
|
|
2023-03-14 18:10:34 +01:00
|
|
|
lut_ram_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/lut_ram_tb.sv -y src/manta
|
2023-03-07 19:02:40 +01:00
|
|
|
vvp sim.out
|
|
|
|
|
rm sim.out
|
|
|
|
|
|
|
|
|
|
uart_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/uart_tb.sv -y src/manta
|
2023-03-07 19:02:40 +01:00
|
|
|
vvp sim.out
|
|
|
|
|
rm sim.out
|
|
|
|
|
|
|
|
|
|
uart_tx_tb:
|
2023-03-24 04:50:09 +01:00
|
|
|
iverilog -g2012 -o sim.out test/hdl_tb/uart_tx_tb.sv -y src/manta
|
2023-03-07 19:02:40 +01:00
|
|
|
vvp sim.out
|
|
|
|
|
rm sim.out
|
|
|
|
|
|
|
|
|
|
clean:
|
2023-03-07 19:12:03 +01:00
|
|
|
rm -f *.out *.vcd
|
2023-03-07 19:02:40 +01:00
|
|
|
rm -rf dist/
|
2023-03-08 04:05:06 +01:00
|
|
|
rm -rf src/mantaray.egg-info
|