mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-31 22:27:50 +00:00
Gowin. Implement byte enable.
Enable write port with byte enables for BSRAM primitives. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
parent
64a933d77b
commit
ea90f54783
3 changed files with 32 additions and 10 deletions
|
|
@ -2,6 +2,7 @@ ram block $__GOWIN_SP_ {
|
|||
abits 14;
|
||||
widths 1 2 4 9 18 36 per_port;
|
||||
cost 128;
|
||||
byte 9;
|
||||
init no_undef;
|
||||
port srsw "A" {
|
||||
clock posedge;
|
||||
|
|
@ -24,6 +25,7 @@ ram block $__GOWIN_SP_ {
|
|||
rdwr old;
|
||||
}
|
||||
}
|
||||
wrbe_separate;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -31,6 +33,7 @@ ram block $__GOWIN_DP_ {
|
|||
abits 14;
|
||||
widths 1 2 4 9 18 per_port;
|
||||
cost 128;
|
||||
byte 9;
|
||||
init no_undef;
|
||||
port srsw "A" "B" {
|
||||
clock posedge;
|
||||
|
|
@ -53,6 +56,7 @@ ram block $__GOWIN_DP_ {
|
|||
rdwr old;
|
||||
}
|
||||
}
|
||||
wrbe_separate;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -60,6 +64,7 @@ ram block $__GOWIN_SDP_ {
|
|||
abits 14;
|
||||
widths 1 2 4 9 18 36 per_port;
|
||||
cost 128;
|
||||
byte 9;
|
||||
init no_undef;
|
||||
port sr "R" {
|
||||
clock posedge;
|
||||
|
|
@ -75,5 +80,6 @@ ram block $__GOWIN_SDP_ {
|
|||
port sw "W" {
|
||||
clock posedge;
|
||||
clken;
|
||||
wrbe_separate;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue