Skip to content

Commit eed7931

Browse files
committed
designs/mock-alu: declare MOCK_ALU_{WIDTH,OPERATIONS} as user_arguments
These two variables parameterize the Chisel-generated mock-ALU Verilog in flow/designs/src/mock-alu/verilog.sh. They are design-specific and not read by any ORFS script, so the correct place to declare them is the design BUILD's user_arguments list, which routes them through orfs_flow(user_arguments=...) to bypass the variables.yaml validator rather than polluting variables.yaml with single-design knobs. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 5e3e3ec commit eed7931

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • flow/designs/asap7/mock-alu

‎flow/designs/asap7/mock-alu/BUILD‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
load("//flow/designs:design.bzl", "design")
22

3-
design(config = "config.mk")
3+
design(
4+
config = "config.mk",
5+
user_arguments = [
6+
"MOCK_ALU_OPERATIONS",
7+
"MOCK_ALU_WIDTH",
8+
],
9+
)

0 commit comments

Comments
 (0)