-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6e333a
commit 67189a3
Showing
12 changed files
with
707 additions
and
243 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
[General] | ||
ipc_version=4 | ||
file=gowin_sdpb | ||
module=Gowin_SDPB | ||
target_device=gw1nr9c-004 | ||
type=ram_sdpb | ||
version=1.0 | ||
|
||
[Config] | ||
BYTE_SIZE=0 | ||
DEPTH_A=512 | ||
DEPTH_B=128 | ||
LANG=0 | ||
READ=0 | ||
RESET_MODE=true | ||
WIDTH_A=8 | ||
WIDTH_B=32 |
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,19 @@ | ||
-series GW1NR | ||
-device GW1NR-9 | ||
-device_version C | ||
-package QFN88P | ||
-part_number GW1NR-LV9QN88PC6/I5 | ||
|
||
|
||
-mod_name Gowin_SDPB | ||
-file_name gowin_sdpb | ||
-path /home/lenovo/gowin/project/dac/src/gowin_sdpb/ | ||
-type RAM_SDP | ||
-file_type vlg | ||
-bram_b true | ||
-depth_0 512 | ||
-depth_1 128 | ||
-width_0 8 | ||
-width_1 32 | ||
-read_mode bypass | ||
-reset_mode sync |
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,51 @@ | ||
//Copyright (C)2014-2023 Gowin Semiconductor Corporation. | ||
//All rights reserved. | ||
//File Title: IP file | ||
//GOWIN Version: V1.9.8.11 Education | ||
//Part Number: GW1NR-LV9QN88PC6/I5 | ||
//Device: GW1NR-9 | ||
//Device Version: C | ||
//Created Time: Sat Oct 14 12:27:58 2023 | ||
|
||
module Gowin_SDPB (dout, clka, cea, reseta, clkb, ceb, resetb, oce, ada, din, adb); | ||
|
||
output [31:0] dout; | ||
input clka; | ||
input cea; | ||
input reseta; | ||
input clkb; | ||
input ceb; | ||
input resetb; | ||
input oce; | ||
input [8:0] ada; | ||
input [7:0] din; | ||
input [6:0] adb; | ||
|
||
wire gw_gnd; | ||
|
||
assign gw_gnd = 1'b0; | ||
|
||
SDPB sdpb_inst_0 ( | ||
.DO({dout[31:24],dout[23:16],dout[15:8],dout[7:0]}), | ||
.CLKA(clka), | ||
.CEA(cea), | ||
.RESETA(reseta), | ||
.CLKB(clkb), | ||
.CEB(ceb), | ||
.RESETB(resetb), | ||
.OCE(oce), | ||
.BLKSELA({gw_gnd,gw_gnd,gw_gnd}), | ||
.BLKSELB({gw_gnd,gw_gnd,gw_gnd}), | ||
.ADA({gw_gnd,gw_gnd,ada[8:0],gw_gnd,gw_gnd,gw_gnd}), | ||
.DI({gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd,din[7:0]}), | ||
.ADB({gw_gnd,gw_gnd,adb[6:0],gw_gnd,gw_gnd,gw_gnd,gw_gnd,gw_gnd}) | ||
); | ||
|
||
defparam sdpb_inst_0.READ_MODE = 1'b0; | ||
defparam sdpb_inst_0.BIT_WIDTH_0 = 8; | ||
defparam sdpb_inst_0.BIT_WIDTH_1 = 32; | ||
defparam sdpb_inst_0.BLK_SEL_0 = 3'b000; | ||
defparam sdpb_inst_0.BLK_SEL_1 = 3'b000; | ||
defparam sdpb_inst_0.RESET_MODE = "SYNC"; | ||
|
||
endmodule //Gowin_SDPB |
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,27 @@ | ||
//Copyright (C)2014-2023 Gowin Semiconductor Corporation. | ||
//All rights reserved. | ||
//File Title: Template file for instantiation | ||
//GOWIN Version: V1.9.8.11 Education | ||
//Part Number: GW1NR-LV9QN88PC6/I5 | ||
//Device: GW1NR-9 | ||
//Device Version: C | ||
//Created Time: Sat Oct 14 12:27:58 2023 | ||
|
||
//Change the instance name and port connections to the signal names | ||
//--------Copy here to design-------- | ||
|
||
Gowin_SDPB your_instance_name( | ||
.dout(dout_o), //output [31:0] dout | ||
.clka(clka_i), //input clka | ||
.cea(cea_i), //input cea | ||
.reseta(reseta_i), //input reseta | ||
.clkb(clkb_i), //input clkb | ||
.ceb(ceb_i), //input ceb | ||
.resetb(resetb_i), //input resetb | ||
.oce(oce_i), //input oce | ||
.ada(ada_i), //input [8:0] ada | ||
.din(din_i), //input [7:0] din | ||
.adb(adb_i) //input [6:0] adb | ||
); | ||
|
||
//--------Copy end------------------- |
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 |
---|---|---|
|
@@ -103,7 +103,7 @@ begin | |
end | ||
end | ||
|
||
always | ||
always @(*) | ||
begin | ||
case(LUT_INDEX) | ||
// Config Data | ||
|
Oops, something went wrong.