Skip to content

Commit

Permalink
Merge pull request #4 from efabless/gl_fix
Browse files Browse the repository at this point in the history
open power domain to fix GL sim issue
  • Loading branch information
jeffdi authored Jul 16, 2024
2 parents a4de873 + 770d6d4 commit 1a9245e
Show file tree
Hide file tree
Showing 20 changed files with 1,728 additions and 10,945 deletions.
Binary file not shown.
Binary file removed gds/EF_SRAM_1024x32_macro.gds
Binary file not shown.
6 changes: 3 additions & 3 deletions hdl/EF_SRAM_1024x32_wrapper.v → hdl/EF_SRAM_1024x32.v
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
`define USE_PG_PIN
`endif

module EF_SRAM_1024x32_wrapper (DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
module EF_SRAM_1024x32 (DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
`ifdef USE_PG_PIN
vgnd, vnb, vpb, vpwra,
`endif
Expand Down Expand Up @@ -64,8 +64,8 @@ vpwrpc
input ScanInCC;
input ScanInDL;
input ScanInDR;
inout vpwrac;
inout vpwrpc;
input vpwrac;
input vpwrpc;

`ifdef USE_PG_PIN
input vgnd;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
`define USE_PG_PIN
`endif

module EF_SRAM_1024x32_wrapper (DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
module EF_SRAM_1024x32 (DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
`ifdef USE_PG_PIN
vgnd, vnb, vpb, vpwra,
`endif
Expand Down
2 changes: 1 addition & 1 deletion hdl/EF_SRAM_1024x32_stub.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// If you have a separate agreement with Efabless pertaining to the use of this software
// then that agreement shall control.

module EF_SRAM_1024x32 (DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF, vgnd, vnb, vpb, vpwra, vpwrac, vpwrm, vpwrp, vpwrpc);
module EF_SRAM_1024x32_macro (DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF, vgnd, vnb, vpb, vpwra, vpwrac, vpwrm, vpwrp, vpwrpc);
output [31:0] DO;
output ScanOutCC;
input [31:0] DI;
Expand Down
6 changes: 3 additions & 3 deletions hdl/beh_models/EF_SRAM_1024x32.ff_160V_150C.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

`celldefine

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
`ifdef USE_PG_PIN
vgnd, vnb, vpb, vpwra,
Expand Down Expand Up @@ -1360,7 +1360,7 @@ always @ (normal_mode or DIreg or R_WBreg or WL_Enable or ADreg or BENreg or WLO
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end
end
else if (inputs_x_reg === 1'b1) begin
Expand Down Expand Up @@ -1420,7 +1420,7 @@ begin: read_data_block
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end

end
Expand Down
6 changes: 3 additions & 3 deletions hdl/beh_models/EF_SRAM_1024x32.ff_195V_n40C.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

`celldefine

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
`ifdef USE_PG_PIN
vgnd, vnb, vpb, vpwra,
Expand Down Expand Up @@ -1360,7 +1360,7 @@ always @ (normal_mode or DIreg or R_WBreg or WL_Enable or ADreg or BENreg or WLO
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end
end
else if (inputs_x_reg === 1'b1) begin
Expand Down Expand Up @@ -1420,7 +1420,7 @@ begin: read_data_block
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end

end
Expand Down
6 changes: 3 additions & 3 deletions hdl/beh_models/EF_SRAM_1024x32.ss_160V_150C.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

`celldefine

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
`ifdef USE_PG_PIN
vgnd, vnb, vpb, vpwra,
Expand Down Expand Up @@ -1360,7 +1360,7 @@ always @ (normal_mode or DIreg or R_WBreg or WL_Enable or ADreg or BENreg or WLO
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end
end
else if (inputs_x_reg === 1'b1) begin
Expand Down Expand Up @@ -1420,7 +1420,7 @@ begin: read_data_block
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end

end
Expand Down
6 changes: 3 additions & 3 deletions hdl/beh_models/EF_SRAM_1024x32.ss_160V_n40C.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

`celldefine

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
`ifdef USE_PG_PIN
vgnd, vnb, vpb, vpwra,
Expand Down Expand Up @@ -1360,7 +1360,7 @@ always @ (normal_mode or DIreg or R_WBreg or WL_Enable or ADreg or BENreg or WLO
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end
end
else if (inputs_x_reg === 1'b1) begin
Expand Down Expand Up @@ -1420,7 +1420,7 @@ begin: read_data_block
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end

end
Expand Down
6 changes: 3 additions & 3 deletions hdl/beh_models/EF_SRAM_1024x32.tt_180V_25C.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

`celldefine

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF,
`ifdef USE_PG_PIN
vgnd, vnb, vpb, vpwra,
Expand Down Expand Up @@ -1360,7 +1360,7 @@ always @ (normal_mode or DIreg or R_WBreg or WL_Enable or ADreg or BENreg or WLO
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Write AD=%h OutOfRange in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end
end
else if (inputs_x_reg === 1'b1) begin
Expand Down Expand Up @@ -1420,7 +1420,7 @@ begin: read_data_block
end
else if (is_AD_within_range(getAD(ADreg)) == 0) begin
if (!dis_err_msgs) begin
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32 in instance %m at time=%t\n", ADreg, $time);
$display("===ERROR=== (efsram) : Read AD=%h Out Of Range in memory EF_SRAM_1024x32_macro in instance %m at time=%t\n", ADreg, $time);
end

end
Expand Down
2 changes: 1 addition & 1 deletion hdl/beh_models/EF_SRAM_1024x32_tmax_ff_160V_150C.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module EF_SRAM_1024x32_tmx

`else

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF
`ifdef USE_PG_PIN
, vgnd, vnb, vpb, vpwra
Expand Down
2 changes: 1 addition & 1 deletion hdl/beh_models/EF_SRAM_1024x32_tmax_ff_195V_n40C.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module EF_SRAM_1024x32_tmx

`else

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF
`ifdef USE_PG_PIN
, vgnd, vnb, vpb, vpwra
Expand Down
2 changes: 1 addition & 1 deletion hdl/beh_models/EF_SRAM_1024x32_tmax_ss_160V_150C.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module EF_SRAM_1024x32_tmx

`else

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF
`ifdef USE_PG_PIN
, vgnd, vnb, vpb, vpwra
Expand Down
2 changes: 1 addition & 1 deletion hdl/beh_models/EF_SRAM_1024x32_tmax_ss_160V_n40C.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module EF_SRAM_1024x32_tmx

`else

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF
`ifdef USE_PG_PIN
, vgnd, vnb, vpb, vpwra
Expand Down
2 changes: 1 addition & 1 deletion hdl/beh_models/EF_SRAM_1024x32_tmax_tt_180V_25C.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module EF_SRAM_1024x32_tmx

`else

module EF_SRAM_1024x32
module EF_SRAM_1024x32_macro
(DO, ScanOutCC, AD, BEN, CLKin, DI, EN, R_WB, ScanInCC, ScanInDL, ScanInDR, SM, TM, WLBI, WLOFF
`ifdef USE_PG_PIN
, vgnd, vnb, vpb, vpwra
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
`define USE_PG_PIN
`endif

module SRAM_1024x32 (
module SRAM_1024x32_wb_wrapper (
`ifdef USE_POWER_PINS
inout VPWR,
inout VGND,
Expand Down Expand Up @@ -57,7 +57,7 @@ wire EN;
wire R_WB;
wire CLKin;

ram_controller #(.AW(10)) ram_controller(
ram_wb_controller #(.AW(10)) ram_controller(
.wb_clk_i(wb_clk_i),
.wb_rst_i(wb_rst_i),
.wbs_stb_i(wbs_stb_i),
Expand All @@ -77,13 +77,13 @@ ram_controller #(.AW(10)) ram_controller(
.CLKin(CLKin)
);

EF_SRAM_1024x32_wrapper SRAM_0 (
EF_SRAM_1024x32 SRAM_0 (
`ifdef USE_POWER_PINS
.vgnd(VGND),
.vnb(VGND),
.vpb(VPWR),
.vpwra(VPWR),
.vpwrm(VPWR),
.vpwrm(),
.vpwrp(VPWR),
`endif
.vpwrac(1'b1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// If you have a separate agreement with Efabless pertaining to the use of this software
// then that agreement shall control.

module ram_controller #(parameter AW = 10) (
module ram_wb_controller #(parameter AW = 10) (
// wishbone
input wb_clk_i,
input wb_rst_i,
Expand Down
Loading

0 comments on commit 1a9245e

Please sign in to comment.