Skip to content

Commit c02cc9b

Browse files
authoredApr 30, 2024··
Setup release infrastruture (#418)
Closes #417
1 parent 3725fbe commit c02cc9b

8 files changed

+462
-7
lines changed
 

‎.github/workflows/release.yml

+360
Large diffs are not rendered by default.

‎bin/lakeroad-portfolio.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
args, rest = parser.parse_known_args()
114114

115115
# Process the "--" flag which marks the end of the flags for the script.
116-
rest = rest[1:] if rest[0] == "--" else rest
116+
rest = rest[1:] if (len(rest) > 0 and rest[0] == "--") else rest
117117

118118

119119
def _parse_flag_set(flag_set: str) -> List[str]:

‎dependencies.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ export YICES2_COMMIT_HASH="5326f0d645df6e38ae6e7d944381d01ba7d805ab"
2828
export BITWUZLA_COMMIT_HASH="b655bc0cde570258367bf8f09a113bc7b95e46e9"
2929
export RACKET_FMT_COMMIT_HASH="7d0a3dfff3a6cacfb59972a56d476556f89a0b1b"
3030
export YOSYS_COMMIT_HASH="70d35314dbd7521870047ed607897f22dc48cbc3"
31-
export CVC5_COMMIT_HASH="ebfdf84d5698eeb83e0fa4e45101fe4a8f4543eb"
31+
export CVC5_COMMIT_HASH="1d05a49387c041dba17f85f3c4e738b4b388ace2"
3232
export VERILATOR_COMMIT_HASH="881c6ee6557fbde017466553b2f0918250e9c4bd"

‎lakeroad

-5
This file was deleted.

‎release_files/README.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Lakeroad
2+
3+
Open issues here:
4+
<https://github.com/uwsampl/lakeroad/issues/new>
5+
6+
Thanks for downloading a release of Lakeroad.
7+
8+
To install Lakeroad on your system, simply add `./bin` to your `$PATH`.
9+
10+
To run the examples, run
11+
12+
```sh
13+
./run-examples.sh
14+
```
15+
16+
Examples are located in `./examples/`.
17+
18+
To see documentation of Lakeroad's flags, run both
19+
20+
```sh
21+
./bin/lakeroad --help
22+
```
23+
24+
and
25+
26+
```sh
27+
./deps/lakeroad/bin/lakeroad-single-solver --help
28+
```
29+
30+
Note that `./bin/lakeroad` is a wrapper over the core Lakeroad binary, `lakeroad-single-solver`. To see Lakeroad's full options, please run the core Lakeroad binary with `--help`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// RUN: racket $LAKEROAD_DIR/bin/main.rkt \
2+
// RUN: --solver bitwuzla \
3+
// RUN: --verilog-module-filepath %s \
4+
// RUN: --architecture xilinx-ultrascale-plus \
5+
// RUN: --template dsp \
6+
// RUN: --out-format verilog \
7+
// RUN: --top-module-name top \
8+
// RUN: --verilog-module-out-signal out:11 \
9+
// RUN: --initiation-interval 1 \
10+
// RUN: --clock-name clk \
11+
// RUN: --module-name out \
12+
// RUN: --input-signal a:11 \
13+
// RUN: --input-signal b:11 \
14+
// RUN: --input-signal c:11 \
15+
// RUN: --input-signal d:11 \
16+
// RUN: --extra-cycles 3 \
17+
// RUN: --timeout 120 \
18+
// RUN: | FileCheck %s
19+
20+
(* use_dsp = "yes" *) module top(
21+
input signed [10:0] a,
22+
input signed [10:0] b,
23+
input signed [10:0] c,
24+
input signed [10:0] d,
25+
output [10:0] out,
26+
input clk);
27+
28+
logic signed [21:0] stage0;
29+
30+
always @(posedge clk) begin
31+
stage0 <= ((d + a) * b) + c;
32+
33+
end
34+
35+
assign out = stage0;
36+
endmodule
37+
38+
// CHECK: module out(a, b, c, clk, d, out);
39+
// CHECK: DSP48E2 #(
40+
// CHECK: endmodule
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4+
5+
"$SCRIPT_DIR/../bin/lakeroad" \
6+
--bitwuzla --stp --yices --cvc5 \
7+
--verilog-module-filepath "$SCRIPT_DIR/verilog/xilinx_ultrascale_1stage_addmuladd_signed_11bit.sh" \
8+
--architecture xilinx-ultrascale-plus \
9+
--template dsp \
10+
--out-format verilog \
11+
--top-module-name top \
12+
--verilog-module-out-signal out:11 \
13+
--initiation-interval 1 \
14+
--clock-name clk \
15+
--module-name out \
16+
--input-signal a:11 \
17+
--input-signal b:11 \
18+
--input-signal c:11 \
19+
--input-signal d:11 \
20+
--extra-cycles 3 \
21+
--timeout 120

‎release_files/run-examples.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
4+
5+
# Run all examples in ./examples
6+
for example in "$SCRIPT_DIR/examples"/*; do
7+
echo "Running example $example"
8+
./"$example"
9+
done

0 commit comments

Comments
 (0)
Please sign in to comment.