diff --git a/configs/swerv_config_gen.py b/configs/swerv_config_gen.py index e5b8c98..1463d0f 100644 --- a/configs/swerv_config_gen.py +++ b/configs/swerv_config_gen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from fusesoc.capi2.generator import Generator import os import shutil diff --git a/design/lib/mem_lib.sv b/design/lib/mem_lib.sv index e741c61..00702ea 100644 --- a/design/lib/mem_lib.sv +++ b/design/lib/mem_lib.sv @@ -28,7 +28,7 @@ module ram_``depth``x``width( \ reg [(width-1):0] ram_core [(depth-1):0]; \ \ 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]; \ end \ \ diff --git a/swerv_el2.core b/swerv_el2.core index 742cdaf..fb41821 100644 --- a/swerv_el2.core +++ b/swerv_el2.core @@ -85,7 +85,7 @@ generate: generators: swerv_el2_config: - interpreter: python + interpreter: python3 command: configs/swerv_config_gen.py description : Create a SweRV EL2 configuration. Note! Only supports the default config