Skip to content

Commit 8c302ef

Browse files
committed
asap7: move behavioral logic files into platform dir
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 15c4bd7 commit 8c302ef

File tree

10 files changed

+29
-6
lines changed

10 files changed

+29
-6
lines changed

flow/designs/asap7/mock-array/power.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ foreach libFile $::env(LIB_FILES) {
66

77
read_verilog results/asap7/mock-array_Element/base/6_final.v
88
read_verilog $::env(RESULTS_DIR)/6_final.v
9-
read_verilog designs/src/mock-array/post/empty.v
9+
read_verilog $::env(PLATFORM_DIR)/verilog/stdcell/empty.v
1010

1111
link_design MockArray
1212

flow/designs/src/mock-array/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ target/
77
.bloop/
88
.bsp/
99
test_run_dir/
10+
MockArrayTestbench.vcd

flow/designs/src/mock-array/src/main/scala/MockArray.scala

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,17 @@ extends BlackBox with HasBlackBoxPath {
161161
val reset = Input(Bool())
162162
val io = new MockArrayBundle(width, height, singleElementWidth)
163163
})
164-
Seq("asap7sc7p5t_AO_RVT_TT_201020.v",
164+
val platformDir = sys.env.getOrElse("PLATFORM_DIR", "defaultPath") + "/verilog/stdcell/"
165+
(Seq("asap7sc7p5t_AO_RVT_TT_201020.v",
165166
"asap7sc7p5t_SEQ_RVT_TT_220101.v",
166167
"asap7sc7p5t_SIMPLE_RVT_TT_201020.v",
167168
"asap7sc7p5t_INVBUF_RVT_TT_201020.v",
168169
"empty.v",
169-
"dff.v",
170+
"dff.v").map(p=>Paths.get(platformDir + p)) ++
171+
Seq(
170172
"MockArrayFinal.v",
171-
"MockArrayElementFinal.v").foreach{
172-
path => addPath(Paths.get("post/" + path).toAbsolutePath().toString())
173-
}
173+
"MockArrayElementFinal.v").map(p=>Paths.get("post/" + p)))
174+
.foreach(p=> addPath(p.toAbsolutePath().toString()))
174175
}
175176

176177
class MockArrayTestbench(width:Int, height:Int, singleElementWidth:Int) extends Module {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ASAP7 behavioral model files
2+
============================
3+
4+
These are unmodified files from
5+
https://github.com/The-OpenROAD-Project/asap7sc7p5t_28/tree/main/Verilog
6+
7+
Note that some tools, notably Verilator, might struggle with some
8+
of the SystemVerilog features used by the behavioral logic files in
9+
the ASAP7 PDK.
10+
11+
To work around this ORFS re-implements some behavioral such as the dff.v
12+
and empty.v to allow for post-synthesis simulation to use OpenSTA
13+
read_power_activities features.
14+
15+

flow/designs/src/mock-array/post/asap7sc7p5t_AO_RVT_TT_201020.v renamed to flow/platforms/asap7/verilog/stdcell/asap7sc7p5t_AO_RVT_TT_201020.v

File renamed without changes.

flow/designs/src/mock-array/post/asap7sc7p5t_INVBUF_RVT_TT_201020.v renamed to flow/platforms/asap7/verilog/stdcell/asap7sc7p5t_INVBUF_RVT_TT_201020.v

File renamed without changes.

flow/designs/src/mock-array/post/asap7sc7p5t_SEQ_RVT_TT_220101.v renamed to flow/platforms/asap7/verilog/stdcell/asap7sc7p5t_SEQ_RVT_TT_220101.v

File renamed without changes.

flow/designs/src/mock-array/post/asap7sc7p5t_SIMPLE_RVT_TT_201020.v renamed to flow/platforms/asap7/verilog/stdcell/asap7sc7p5t_SIMPLE_RVT_TT_201020.v

File renamed without changes.

flow/designs/src/mock-array/post/dff.v renamed to flow/platforms/asap7/verilog/stdcell/dff.v

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Quick and dirty reimplementation of altos_dff_module because
2+
// Verilato doesn't support and has no plans to support 1995 UDP
3+
// tables.
4+
//
5+
// https://github.com/verilator/verilator/issues/5243
16
module altos_dff_module(q, v, clk, d, xcr);
27
output reg q;
38
input v, clk, d, xcr;

flow/designs/src/mock-array/post/empty.v renamed to flow/platforms/asap7/verilog/stdcell/empty.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Used to silence warnings.
12
module TAPCELL_ASAP7_75t_R;
23
endmodule
34
module FILLERxp5_ASAP7_75t_R;

0 commit comments

Comments
 (0)