-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
30 lines (22 loc) · 866 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This file is public domain, it can be freely copied without restrictions.
# SPDX-License-Identifier: CC0-1.0
SIM ?= verilator
TOPLEVEL_LANG ?= verilog
EXTRA_ARGS += --trace --trace-structs
# The following variants require "CCW = 32" in test.py:
EXTRA_ARGS += -DV1
# EXTRA_ARGS += -DV2
# EXTRA_ARGS += -DV3
# The following variants require "CCW = 64" in test.py:
# EXTRA_ARGS += -DV4
# EXTRA_ARGS += -DV5
# EXTRA_ARGS += -DV6
VERILOG_SOURCES += $(PWD)/rtl/config.sv $(PWD)/rtl/functions.sv $(PWD)/rtl/ascon_core.sv $(PWD)/rtl/asconp.sv
# TOPLEVEL is the name of the toplevel module in your Verilog or VHDL file
TOPLEVEL = ascon_core
# MODULE is the basename of the Python test file
MODULE = test
# Include cocotb's make rules to take care of the simulator setup
include $(shell cocotb-config --makefiles)/Makefile.sim
surf:
surfer -s surfer.ron dump.vcd