-
Notifications
You must be signed in to change notification settings - Fork 8
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
RTL Co-Simulation #21
Conversation
…example, added module instantiation check to RAD-SIM
@@ -31,6 +31,8 @@ void add_driver::source() { | |||
client_valid.write(false); | |||
wait(); | |||
rst.write(false); | |||
start_cycle = GetSimulationCycle(1.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why the clock period is hardcoded to 1ns here?
I think it should be set to the driver clock period from the config.yml file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I replaced it all with the "sim_driver_period" parameter
std::vector<unsigned int> num_mvms; | ||
unsigned int num_layers; | ||
std::string num_mvms_layer, num_mvms_rtl_layer; | ||
std::string layer_mvms; | ||
line_stream >> num_layers; | ||
num_mvms.resize(num_layers); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change this variable name (and other related ones) to explicitly mention it is for SystemC MVMs (e.g. num_mvms_systemc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this also might apply to other files that have similar configuration parsing code (e.g. mlp_driver)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great suggestion, I renamed all the ambiguous names to specify sysc, and also renamed the system c MVM module to sysc_mvm so its more clear
@@ -5,7 +5,9 @@ | |||
from pathlib import Path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a critical file that I can see people needing to change later for different reasons, but it is very lightly commented. Could you add high-level comments at the top of the file and then detailed comments on different sections to explain what is going on in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments describing functionality at the top, and also some comments at each function block.
@@ -6,22 +6,27 @@ | |||
import argparse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is also lightly commented. I think this is a critical script that should be heavily commented for future modifications/extensions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments describing the functionality. Most code in this file is actually either in plain English (value assertions with messages), or simply lines of code writing C++ code. I tried not to put too many comments there since it doesnt help that much
@@ -8,6 +8,9 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a high-level comment at the top of this file to explain why it is needed and when it is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Summary of Changes: