Merge pull request #9 from olofk/mem_lib_fix

Mem lib fix
This commit is contained in:
Ajay Nath 2020-09-24 20:14:24 -04:00 committed by GitHub
commit e4a822bd50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from fusesoc.capi2.generator import Generator from fusesoc.capi2.generator import Generator
import os import os
import shutil import shutil

View File

@ -28,7 +28,7 @@ module ram_``depth``x``width( \
reg [(width-1):0] ram_core [(depth-1):0]; \ reg [(width-1):0] ram_core [(depth-1):0]; \
\ \
always @(posedge CLK) begin \ always @(posedge CLK) begin \
if (ME && WE) ram_core[ADR] = D; \ if (ME && WE) ram_core[ADR] <= D; \
if (ME && ~WE) Q <= ram_core[ADR]; \ if (ME && ~WE) Q <= ram_core[ADR]; \
end \ end \
\ \

View File

@ -85,7 +85,7 @@ generate:
generators: generators:
swerv_el2_config: swerv_el2_config:
interpreter: python interpreter: python3
command: configs/swerv_config_gen.py command: configs/swerv_config_gen.py
description : Create a SweRV EL2 configuration. Note! Only supports the default config description : Create a SweRV EL2 configuration. Note! Only supports the default config