taichi-ishitani / tvip-apb Goto Github PK
View Code? Open in Web Editor NEWVerification IP for AMBA APB Protocol
License: Apache License 2.0
Verification IP for AMBA APB Protocol
License: Apache License 2.0
VCS O-2018.09-1 version reports compile error below.
Error-[PSMARPH] Packed struct member as ref-port hi-conn
/home/ishitani/workspace/rggen-sample-testbench/vip/tvip_apb/src/tvip_apb_item.svh, 42
uvm_pkg, "this.protection.transaction_type"
Illegal use of packed struct member 'this.protection.transaction_type' as
hi-connection to function
uvm_pkg_uvm_enum_wrapper_33013231101321992072_55::from_name ref-port
'value'.
Only variables which share the same representation between callee and caller
can be passed by reference.
Error-[PSMARPH] Packed struct member as ref-port hi-conn
/home/ishitani/workspace/rggen-sample-testbench/vip/tvip_apb/src/tvip_apb_item.svh, 43
uvm_pkg, "this.protection.secure_access"
Illegal use of packed struct member 'this.protection.secure_access' as
hi-connection to function
uvm_pkg_uvm_enum_wrapper_21580188853641549969_52::from_name ref-port
'value'.
Only variables which share the same representation between callee and caller
can be passed by reference.
Error-[PSMARPH] Packed struct member as ref-port hi-conn
/home/ishitani/workspace/rggen-sample-testbench/vip/tvip_apb/src/tvip_apb_item.svh, 44
uvm_pkg, "this.protection.privileged_access"
Illegal use of packed struct member 'this.protection.privileged_access' as
hi-connection to function
uvm_pkg_uvm_enum_wrapper_4370398263155197751_56::from_name ref-port 'value'.
Only variables which share the same representation between callee and caller
can be passed by reference.
Hi Taichi! I find problem. When pready always == 1, then penable not assert, and psel tick only 1 clk.
I think it's connected with this part of code
https://github.com/taichi-ishitani/tvip-apb/blob/master/src/tvip_apb_master_driver.svh#L91
protected virtual task wait_for_done();
while (!vif.master_cb.pready) begin
@(vif.master_cb);
end
i think this must be
protected virtual task wait_for_done();
do begin
@(vif.master_cb);
end while (!vif.master_cb.pready) ;
The penable signal is not de-asserted when the operating state changes from ACCESS state to SETUP state.
Hi @taichi-ishitani !
What do you think about apb slave driver?
If you want i can try to do it...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.