-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block ram mapping for standard modes
- Loading branch information
Showing
3 changed files
with
109 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,46 @@ | ||
ram block $__NX_RAM_ { | ||
abits 13; | ||
widths 1 2 4 9 per_port; | ||
option "STD_MODE" "NOECC_48kx1" { | ||
# only 32k used | ||
abits 15; | ||
widths 1 global; | ||
} | ||
option "STD_MODE" "NOECC_24kx2" { | ||
# only 16k used | ||
abits 14; | ||
widths 2 global; | ||
} | ||
option "STD_MODE" "NOECC_16kx3" { | ||
abits 14; | ||
widths 3 global; | ||
} | ||
option "STD_MODE" "NOECC_12kx4" { | ||
# only 8k used | ||
abits 13; | ||
widths 4 global; | ||
} | ||
option "STD_MODE" "NOECC_8kx6" { | ||
abits 13; | ||
widths 6 global; | ||
} | ||
option "STD_MODE" "NOECC_6kx8" { | ||
# only 4k used | ||
abits 12; | ||
widths 8 global; | ||
} | ||
option "STD_MODE" "NOECC_4kx12" { | ||
abits 12; | ||
widths 12 global; | ||
} | ||
option "STD_MODE" "NOECC_2kx24" { | ||
abits 11; | ||
widths 24 global; | ||
} | ||
cost 64; | ||
init no_undef; | ||
port srsw "A" "B" { | ||
clock anyedge; | ||
clken; | ||
portoption "WRITEMODE" "NORMAL" { | ||
rdwr no_change; | ||
} | ||
portoption "WRITEMODE" "WRITETHROUGH" { | ||
rdwr new; | ||
} | ||
portoption "WRITEMODE" "READBEFOREWRITE" { | ||
rdwr old; | ||
} | ||
option "RESETMODE" "SYNC" { | ||
rdsrst zero ungated block_wr; | ||
} | ||
option "RESETMODE" "ASYNC" { | ||
rdarst zero; | ||
} | ||
rdinit zero; | ||
rdwr no_change; | ||
rdinit none; | ||
} | ||
} |
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