-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added no-rw-check, and new rfb models
- Loading branch information
Showing
7 changed files
with
158 additions
and
15 deletions.
There are no files selected for viewing
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,15 @@ | ||
ram distributed $__NX_RFB_L_ { | ||
abits 6; | ||
width 16; | ||
cost 10; | ||
init no_undef; | ||
prune_rom; | ||
|
||
port sw "W" { | ||
clock anyedge; | ||
} | ||
port sr "R" { | ||
clock anyedge; | ||
rden; | ||
} | ||
} |
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,15 @@ | ||
ram distributed $__NX_RFB_M_ { | ||
abits 6; | ||
width 16; | ||
cost 10; | ||
init no_undef; | ||
prune_rom; | ||
|
||
port sw "W" { | ||
clock anyedge; | ||
} | ||
port sr "R" { | ||
clock anyedge; | ||
rden; | ||
} | ||
} |
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,30 @@ | ||
module $__NX_RFB_L_ ( | ||
input PORT_W_CLK, | ||
input PORT_W_WR_EN, | ||
input [5:0] PORT_W_ADDR, | ||
input [15:0] PORT_W_WR_DATA, | ||
input PORT_R_CLK, | ||
input PORT_R_RD_EN, | ||
input [5:0] PORT_R_ADDR, | ||
output [15:0] PORT_R_RD_DATA, | ||
); | ||
parameter INIT = 1152'bx; | ||
parameter PORT_W_CLK_POL = 1'b1; | ||
parameter PORT_R_CLK_POL = 1'b1; | ||
|
||
NX_RFB_L_WRAP #( | ||
.mode(0), | ||
.mem_ctxt(INIT), | ||
.rck_edge(~PORT_R_CLK_POL), | ||
.wck_edge(~PORT_W_CLK_POL) | ||
) _TECHMAP_REPLACE_ ( | ||
.RCK(PORT_R_CLK), | ||
.WCK(PORT_W_CLK), | ||
.I(PORT_W_WR_DATA), | ||
.RA(PORT_R_ADDR), | ||
.WA(PORT_W_ADDR), | ||
.RE(PORT_R_RD_EN), | ||
.WE(PORT_W_WR_EN), | ||
.O(PORT_R_RD_DATA) | ||
); | ||
endmodule |
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,30 @@ | ||
module $__NX_RFB_M_ ( | ||
input PORT_W_CLK, | ||
input PORT_W_WR_EN, | ||
input [5:0] PORT_W_ADDR, | ||
input [15:0] PORT_W_WR_DATA, | ||
input PORT_R_CLK, | ||
input PORT_R_RD_EN, | ||
input [5:0] PORT_R_ADDR, | ||
output [15:0] PORT_R_RD_DATA, | ||
); | ||
parameter INIT = 1152'bx; | ||
parameter PORT_W_CLK_POL = 1'b1; | ||
parameter PORT_R_CLK_POL = 1'b1; | ||
|
||
NX_RFB_M_WRAP #( | ||
.mode(0), | ||
.mem_ctxt(INIT), | ||
.rck_edge(~PORT_R_CLK_POL), | ||
.wck_edge(~PORT_W_CLK_POL) | ||
) _TECHMAP_REPLACE_ ( | ||
.RCK(PORT_R_CLK), | ||
.WCK(PORT_W_CLK), | ||
.I(PORT_W_WR_DATA), | ||
.RA(PORT_R_ADDR), | ||
.WA(PORT_W_ADDR), | ||
.RE(PORT_R_RD_EN), | ||
.WE(PORT_W_WR_EN), | ||
.O(PORT_R_RD_DATA) | ||
); | ||
endmodule |
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 |
---|---|---|
@@ -1,12 +1,50 @@ | ||
|
||
module $__NX_XRFB_64x18_ (input PORT_W_CLK, input [5:0] PORT_W_ADDR, PORT_R_ADDR, input [17:0] PORT_W_WR_DATA, input PORT_W_WR_EN, output [17:0] PORT_R_RD_DATA); | ||
module $__NX_XRFB_64x18_ ( | ||
input PORT_W_CLK, | ||
input [5:0] PORT_W_ADDR, | ||
input [5:0] PORT_R_ADDR, | ||
input [17:0] PORT_W_WR_DATA, | ||
input PORT_W_WR_EN, | ||
output [17:0] PORT_R_RD_DATA | ||
); | ||
parameter INIT = 1152'bx; | ||
parameter PORT_W_CLK_POL = 1'b1; | ||
NX_XRFB_64x18 #(.mem_ctxt(INIT), .wck_edge(~PORT_W_CLK_POL)) _TECHMAP_REPLACE_ (.WCK(PORT_W_CLK), .I(PORT_W_WR_DATA), .RA(PORT_R_ADDR), .WA(PORT_W_ADDR), .WE(PORT_W_WR_EN), .WEA(1'b1), .O(PORT_R_RD_DATA)); | ||
|
||
NX_XRFB_64x18 #( | ||
.mem_ctxt(INIT), | ||
.wck_edge(~PORT_W_CLK_POL) | ||
) _TECHMAP_REPLACE_ ( | ||
.WCK(PORT_W_CLK), | ||
.I(PORT_W_WR_DATA), | ||
.RA(PORT_R_ADDR), | ||
.WA(PORT_W_ADDR), | ||
.WE(PORT_W_WR_EN), | ||
.WEA(1'b1), | ||
.O(PORT_R_RD_DATA) | ||
); | ||
endmodule | ||
|
||
module $__NX_XRFB_32x36_ (input PORT_W_CLK, input [4:0] PORT_W_ADDR, PORT_R_ADDR, input [35:0] PORT_W_WR_DATA, input PORT_W_WR_EN, output [35:0] PORT_R_RD_DATA); | ||
module $__NX_XRFB_32x36_ ( | ||
input PORT_W_CLK, | ||
input [4:0] PORT_W_ADDR, | ||
input [4:0] PORT_R_ADDR, | ||
input [35:0] PORT_W_WR_DATA, | ||
input PORT_W_WR_EN, | ||
output [35:0] PORT_R_RD_DATA | ||
); | ||
parameter INIT = 1152'bx; | ||
parameter PORT_W_CLK_POL = 1'b1; | ||
NX_XRFB_32x36 #(.mem_ctxt(INIT), .wck_edge(~PORT_W_CLK_POL)) _TECHMAP_REPLACE_ (.WCK(PORT_W_CLK), .I(PORT_W_WR_DATA), .RA(PORT_R_ADDR), .WA(PORT_W_ADDR), .WE(PORT_W_WR_EN), .WEA(1'b1), .O(PORT_R_RD_DATA)); | ||
|
||
NX_XRFB_32x36 #( | ||
.mem_ctxt(INIT), | ||
.wck_edge(~PORT_W_CLK_POL) | ||
) _TECHMAP_REPLACE_ ( | ||
.WCK(PORT_W_CLK), | ||
.I(PORT_W_WR_DATA), | ||
.RA(PORT_R_ADDR), | ||
.WA(PORT_W_ADDR), | ||
.WE(PORT_W_WR_EN), | ||
.WEA(1'b1), | ||
.O(PORT_R_RD_DATA) | ||
); | ||
endmodule |
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