forked from parallaxsw/OpenSTA
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
is_memory
property more sensitive for cells and libcells by al…
…so matching on `memory` groups (parallaxsw#129) * Add `has_memory` property * Whitespace fixes * Remove unused argument name * Review fixes * Move gf180mcu_sram.lib.gz from examples/ to test/ * Fix tcl script * Switch to is_memory * Remove is_memory_cell
- Loading branch information
Showing
10 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[get_cells -filter is_memory] | ||
sram_inst | ||
[get_lib_cells -filter is_memory] | ||
gf180mcu_fd_ip_sram__sram128x8m8wm1__ff_125C_1v98/gf180mcu_fd_ip_sram__sram128x8m8wm1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Tests whether the is_memory attribute works for cells and libcells | ||
read_liberty gf180mcu_sram.lib.gz | ||
read_liberty asap7_small.lib.gz | ||
read_verilog get_is_memory.v | ||
link get_is_memory | ||
|
||
# Test that the is_memory attribute is set correctly for cells | ||
puts {[get_cells -filter is_memory]} | ||
report_object_full_names [get_cells -filter is_memory] | ||
puts {[get_lib_cells -filter is_memory]} | ||
report_object_full_names [get_lib_cells -filter is_memory] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module get_is_memory ( | ||
input CLK, | ||
input CEN, | ||
input GWEN, | ||
input [7:0] WEN, | ||
input [6:0] A, | ||
input [7:0] D, | ||
output [7:0] Q | ||
); | ||
|
||
wire CEN_buf; | ||
wire GWEN_reg; | ||
|
||
BUFx2_ASAP7_75t_R buf_inst ( | ||
.A(CEN), | ||
.Y(CEN_buf) | ||
); | ||
|
||
DFFHQx4_ASAP7_75t_R dff_inst ( | ||
.CLK(CLK), | ||
.D(GWEN), | ||
.Q(GWEN_reg) | ||
); | ||
|
||
gf180mcu_fd_ip_sram__sram128x8m8wm1 sram_inst ( | ||
.CLK(CLK), | ||
.CEN(CEN_buf), | ||
.GWEN(GWEN_reg), | ||
.WEN(WEN), | ||
.A(A), | ||
.D(D), | ||
.Q(Q) | ||
); | ||
|
||
endmodule |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters