saahm Posted May 10, 2021 Report Share Posted May 10, 2021 Hi, I've built an AMS system that works fine on a testbench. Now instead of driving the input signals for my system from the testbench I got a TLM processing model that should drive the inputs and read the outputs of the AMS system. In the user guide there is the discrete-event signals seem to be the element of choice. I connect my TLM based peripherals through the sc_core::sc_signal that gets written/read within a SC_THREAD thats being run periodically. For my AMS modules I use `sca_tdf::sca_de::sca_in/out`. Interconnecting these seems to be no problem. The compiler doesnt throw me any errors or warnings regarding that and the executable seems to get to reach sc_start(). But it doesnt seem to progress the simulation time. The terminal output looks like this after I added a few print statements withtin my TLM and AMS modules: SystemC 2.3.3-Accellera --- Apr 27 2021 15:41:26 Copyright (c) 1996-2018 by all Contributors, ALL RIGHTS RESERVED SystemC AMS extensions 2.3.0-COSEDA Release date: 20200312 2138 Copyright (c) 2010-2014 by Fraunhofer-Gesellschaft IIS/EAS Copyright (c) 2015-2020 by COSEDA Technologies GmbH Licensed under the Apache License, Version 2.0 sim started Info: SystemC-AMS: 4 SystemC-AMS modules instantiated 1 SystemC-AMS views created 4 SystemC-AMS synchronization objects/solvers instantiated Info: SystemC-AMS: 1 dataflow clusters instantiated cluster 0: 4 dataflow modules/solver, contains e.g. module: src_1 4 elements in schedule list, 100 ms cluster period, ratio to lowest: 1 e.g. module: src_1 ratio to highest: 1 sample time e.g. module: src_1 1 connections to SystemC de, 1 connections from SystemC de heater @ 0.000000 = E6476D00 system @ 0.000000 = 1.000000 sink_1 @ 0 s: 0 sensor @ 0.000000 = E6476D00 ^C The "sim started" is a print after at the sc_start() in my sc_main(). The prints with "heater", "system", "sink_1" and "sensor" are within my AMS modules (they're all TDF MoC). The prints of my TLM modules are never reached. I am not quite sure if I missed out on how to properly interconnect the AMS-TLM layers with each other or if there might be another issue there that I am not aware of. Each of the models works independently as I expect it. I set all the modules to 100 ms, and the SC_THREADS run at 100 ms aswell, so synchronization shouldnt be an issue. Is there anything that needs attention when interconnecting TLM and AMS models? Thanks in advance Quote Link to comment Share on other sites More sharing options...
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.