Skip to content
Snippets Groups Projects
Commit 6f591eb2 authored by BRONES Romain's avatar BRONES Romain
Browse files

Mutliple fixes

* Tie version register
* Import lib
* Copy data input before simulation
parent f5ba74d6
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,8 @@ begin ...@@ -87,6 +87,8 @@ begin
po_addrmap => mm_a2l po_addrmap => mm_a2l
); );
mm_l2a.VERSION.data.data <= C_VERSION;
------------------ ------------------
-- UNPACK INPUT -- -- UNPACK INPUT --
------------------ ------------------
......
...@@ -23,7 +23,7 @@ addrmap corr_matrixpi { ...@@ -23,7 +23,7 @@ addrmap corr_matrixpi {
reg { reg {
desc="Module Version Number."; desc="Module Version Number.";
default sw = r; default sw = r;
default hw = r; default hw = rw;
field {} data [32]; field {} data [32];
} VERSION @0x04; } VERSION @0x04;
......
library ieee ; library ieee ;
use ieee.std_logic_1164.all ; use ieee.std_logic_1164.all ;
use ieee.numeric_std.all ; use ieee.numeric_std.all ;
use std.textio.all;
library OSVVM ; library OSVVM ;
context OSVVM.OsvvmContext ; context OSVVM.OsvvmContext ;
......
...@@ -58,4 +58,7 @@ proc setSim {} { ...@@ -58,4 +58,7 @@ proc setSim {} {
set SimTop { \ set SimTop { \
tc_basic \ tc_basic \
} }
# Move data input to project path
file copy -force "../sim/reforbit.txt" "../sim/bpmdata.txt" "../sim/respmat.txt" "../sim/corrout.txt" ${::fwfwk::PrjBuildPath}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment