Roman Popov Posted May 25, 2017 Report Share Posted May 25, 2017 Hello, I need to port following code from Verilog to SystemC: assign #DELAY out = in; What is the best known method to do this in SystemC? Similar question on stackoverlow https://stackoverflow.com/questions/5566785/specifying-signal-delays-in-systemc-as-clause-after-in-vhdl Quote Link to comment Share on other sites More sharing options...
AmeyaVS Posted May 26, 2017 Report Share Posted May 26, 2017 Hello @Roman Popov, You can have a look here: Quote Hope it helps. Regards, Ameya Vikram Singh maehne and Roman Popov 2 Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted May 26, 2017 Author Report Share Posted May 26, 2017 Thanks! I was not aware of sc_event_queue and even started writing something similar from scratch :) Quote Link to comment Share on other sites More sharing options...
campo85 Posted August 11, 2017 Report Share Posted August 11, 2017 Hi all, I'm pretty ignorant in SystemC and I've started to learn it so be kind. What is the point to use a delay assignment in a SC_METHOD ? If you are using an SC_METHOD, I guess you are interested to synthesize the module.The delay assignments are basically ignored by the synthesizer and in some cases they can lead to some problems in a soc level verification. The only use I can think about in VHDL of the delay is to fix the delta delay problem but I'm not sure if the SystemC is affected to this problem. Cheers, Stefano Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted August 11, 2017 Author Report Share Posted August 11, 2017 1 hour ago, campo85 said: What is the point to use a delay assignment in a SC_METHOD ? If you are using an SC_METHOD, I guess you are interested to synthesize the module. I've needed it for test environment modeling purposes, not for synthesis. Quote The only use I can think about in VHDL of the delay is to fix the delta delay problem but I'm not sure if the SystemC is affected to this problem. Delta delay problems (also known as Shoot-thru) are possible in synthesizable SystemC. Common case is when you have a clock gate that inserts a delta delay into a clock signal distribution network. However in SystemC it is solved in a different way: Instead of delaying all assignments, you use immediate notifications inside clock signal, so that processes sensitive to gated clock are executed in the same delta cycle with processes sensitive to ungated clock. campo85 1 Quote Link to comment Share on other sites More sharing options...
jatin jatin Posted November 18, 2017 Report Share Posted November 18, 2017 Hi Roman Popov, is there any way to implement the intra assignment delay without using sc_event()? regards jatin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.