Write whole byte, not nybbles

This commit is contained in:
Joachim Strömbergson 2022-10-11 17:05:21 +02:00
parent a51619e5b7
commit cbf1104fed
No known key found for this signature in database
GPG Key ID: 865B8A548EA61679

View File

@ -53,7 +53,7 @@ module fw_ram(
.WCLKE(1'h1),
.WDATA(write_data[15:0]),
.WE(|we),
.MASK({{4{we[1]}}, {4{we[0]}}})
.MASK({{8{we[1]}}, {8{we[0]}}})
);
@ -68,7 +68,7 @@ module fw_ram(
.WCLKE(1'h1),
.WDATA(write_data[31:16]),
.WE(|we),
.MASK({{4{we[3]}}, {4{we[2]}}})
.MASK({{8{we[3]}}, {8{we[2]}}})
);