-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Metrics DSim sumulator #11
Comments
Clash is reported during elaborating VHDL TB.
To prevent this error, the function get_begin_address (
base_addess: unsigned
) return unsigned is
alias base: unsigned(base_addess'length - 1 downto 0) is base_addess;
variable begin_address: unsigned(ADDRESS_WIDTH - 1 downto 0);
begin
for i in 0 to ADDRESS_WIDTH - 1 loop
if i < BASE_ADDRESS'length then
begin_address(i) := base(i);
else
begin_address(i) := '0';
end if;
end loop;
return begin_address;
end get_begin_address;
constant BEGIN_ADDRESS: unsigned(ADDRESS_WIDTH - 1 downto 0) := get_begin_address(BASE_ADDRESS);
constant END_ADDRESS: unsigned(ADDRESS_WIDTH - 1 downto 0) := BEGIN_ADDRESS + BYTE_SIZE - 1; |
A null handle access error occurs during executing ral_access_test on the VHDL TB.
It caused this error that dsim uses
To fix this error, |
To fix this error, need to specify |
The
It seems that this parameter is not set correctly from SV TB. rggen-sample-testbench/env/apb_top.sv Line 187 in c1a5785
In fact, if this line is removed then no cash error is happened and simulation works fine. |
|
* support Metrics DSim simulator (refs: #11) * add workaround for dsim crash (refs: #11 (comment)) * add dump option * update rggen-sv-rtl submodule * update README
I put the sample code to reproduce this error. |
This DSim bug was fixed. |
https://www.metrics.ca/product
The text was updated successfully, but these errors were encountered: