mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Cleaning up sp memory changes
-removing incorrect bist dout port -repair vector name change
This commit is contained in:
parent
a4f4881ccf
commit
67afb87881
@ -10,7 +10,7 @@ module dv_ctrl(/*AUTOARG*/
|
|||||||
parameter CFG_CLK1_PHASE = CFG_CLK1_PERIOD/2;
|
parameter CFG_CLK1_PHASE = CFG_CLK1_PERIOD/2;
|
||||||
parameter CFG_CLK2_PERIOD = 100;
|
parameter CFG_CLK2_PERIOD = 100;
|
||||||
parameter CFG_CLK2_PHASE = CFG_CLK2_PERIOD/2;
|
parameter CFG_CLK2_PHASE = CFG_CLK2_PERIOD/2;
|
||||||
parameter CFG_TIMEOUT = 5000;
|
parameter CFG_TIMEOUT = 50000;
|
||||||
|
|
||||||
output nreset; // async active low reset
|
output nreset; // async active low reset
|
||||||
output clk1; // main clock
|
output clk1; // main clock
|
||||||
@ -67,7 +67,7 @@ module dv_ctrl(/*AUTOARG*/
|
|||||||
begin
|
begin
|
||||||
#(1)
|
#(1)
|
||||||
nreset = 'b0;
|
nreset = 'b0;
|
||||||
#(clk1_phase * 20) //hold reset for 20 clk cycles
|
#(clk1_phase * 20 + 100) //hold reset for 20 clk cycles
|
||||||
nreset = 'b1;
|
nreset = 'b1;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
6
common/firmware/v2c.sh
Executable file
6
common/firmware/v2c.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#translate verilog to a C header file (print to standard out)
|
||||||
|
#$1 = verilog header file
|
||||||
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
module oh_memory_sp(/*AUTOARG*/
|
module oh_memory_sp(/*AUTOARG*/
|
||||||
// Outputs
|
// Outputs
|
||||||
dout, bist_dout,
|
dout,
|
||||||
// Inputs
|
// Inputs
|
||||||
clk, en, we, wem, addr, din, vdd, vddm, sleep, shutdown,
|
clk, en, we, wem, addr, din, vdd, vddm, sleep, shutdown, repair,
|
||||||
cfg_repair, bist_en, bist_we, bist_wem, bist_addr, bist_din
|
bist_en, bist_we, bist_wem, bist_addr, bist_din
|
||||||
);
|
);
|
||||||
|
|
||||||
// parameters
|
// parameters
|
||||||
@ -27,7 +27,7 @@ module oh_memory_sp(/*AUTOARG*/
|
|||||||
input vddm; // array power rail
|
input vddm; // array power rail
|
||||||
input sleep; // sleep (content retained)
|
input sleep; // sleep (content retained)
|
||||||
input shutdown; // shutdown (no retention)
|
input shutdown; // shutdown (no retention)
|
||||||
input [RW-1:0] cfg_repair; // "wildcard" repair vector
|
input [RW-1:0] repair; // "wildcard" repair vector
|
||||||
|
|
||||||
// BIST interface (ASICs only)
|
// BIST interface (ASICs only)
|
||||||
input bist_en; // bist enable
|
input bist_en; // bist enable
|
||||||
@ -35,19 +35,18 @@ module oh_memory_sp(/*AUTOARG*/
|
|||||||
input [DW-1:0] bist_wem; // write enable vector
|
input [DW-1:0] bist_wem; // write enable vector
|
||||||
input [AW-1:0] bist_addr; // address
|
input [AW-1:0] bist_addr; // address
|
||||||
input [DW-1:0] bist_din; // data input
|
input [DW-1:0] bist_din; // data input
|
||||||
output [DW-1:0] bist_dout; // data output
|
|
||||||
|
|
||||||
`ifdef CFG_ASIC
|
`ifdef CFG_ASIC
|
||||||
|
|
||||||
//Actual IP hidden behind wrapper to protect the innocent
|
//Actual IP hidden behind wrapper to protect the innocent
|
||||||
|
|
||||||
sram_sp #(.DW(DW).
|
sram_sp #(.DW(DW).
|
||||||
.DEPTH(DEPTH),
|
.DEPTH(DEPTH),
|
||||||
.PROJ(PROJ),
|
.PROJ(PROJ),
|
||||||
.RW(RW))
|
.RW(RW))
|
||||||
sram_sp (/*AUTOINST*/
|
|
||||||
// Outputs
|
sram_sp (// Outputs
|
||||||
.dout (dout[DW-1:0]),
|
.dout (dout[DW-1:0]),
|
||||||
.bist_dout (bist_dout[DW-1:0]),
|
|
||||||
// Inputs
|
// Inputs
|
||||||
.clk (clk),
|
.clk (clk),
|
||||||
.en (en),
|
.en (en),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user