EnricoGiordano1992 / resim-simulating-partial-reconfiguration

Automatically exported from code.google.com/p/resim-simulating-partial-reconfiguration
Other
0 stars 0 forks source link

ReSim-2: Need to cleanup ReSim workspace before performing code generation #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Users report the following error message when running the FPCIe example.

# ** Error: [ERROR] portmap pcie_if has already been created!!!
# Error in macro ./auto_generation.tcl line 6
# [ERROR] portmap pcie_if has already been created!!!
#     while executing
# "rsv_assert { [llength [array names portmap_a -exact $ri_.nm]] == 0 }  
"\[ERROR\] portmap $ri_ has already been created!!!""
#     (procedure "rsv_create_portmap" line 4)
#     invoked from within
# "rsv_create_portmap "pcie_if" "trn_clk""

ReSim version: 2.3b
ModelSim version: unknown
OS: unknown

Original issue reported on code.google.com by george.g...@gmail.com on 31 May 2014 at 5:04

GoogleCodeExporter commented 8 years ago
This error message is from the code generation script of ReSim. The assertion 
fired since a "pcie_if" portmap has already been created. This is because ReSim 
does not automatically clean up global variables from previous runs. 

To clean up ReSim workspace, users can add 

ReSim::rsv_cleanup;

at the beginning of their code generation scripts (e.g., auto_generation.tcl) 
to make sure always starting from a clean workspace. 

Alternatively, users can also manually call this function in the Tcl 
interpreter that executes the code generation scripts. For example

ModelSim> ReSim::rsv_cleanup;

The last thing you can do is to restart your Tcl interpreter or ModelSim 
software.

Original comment by george.g...@gmail.com on 31 May 2014 at 5:16