-
Notifications
You must be signed in to change notification settings - Fork 804
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
[top] Integrate ast into FPGA #8194
Conversation
1e2c660
to
c740e93
Compare
I need to clean-up the commits a bit, but can you guys have a look at the final result and let me know what you think? |
c740e93
to
b71953d
Compare
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.
Thanks for taking a stab at this! A few comments, LGTM otherwise.
@@ -47,7 +47,8 @@ initial begin | |||
init_start = 1'b0; | |||
end | |||
|
|||
always_ff @( init_start, posedge vcc_pok_h_i, negedge vcc_pok_h_i ) begin | |||
always_ff @( posedge init_start, negedge init_start, | |||
posedge vcc_pok_h_i, negedge vcc_pok_h_i ) begin |
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.
we need to make sure that Nuvoton is aware of this change in AST...
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.
yep, so this change is for verilator (the other pr) and @Jacob-Levy is aware of them.
|
||
|
||
assign ext_clk = '0; | ||
assign pad2ast = '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.
can we add a TODO here and below and say that this needs to be connected to the padring (once that module is instantiated at this level also?)
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.
yeah i can do that. I actually think ext_clk
should already be connected now.
@@ -221,14 +451,18 @@ module chip_earlgrey_verilator ( | |||
.dio_attr_o ( ), | |||
|
|||
// Memory attributes | |||
// This is different between verilator and the rest of the platforms right now | |||
.ram_1p_cfg_i ('0), | |||
.ram_2p_cfg_i ('0), | |||
.rom_cfg_i ('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.
Don't these technically come from AST as well?
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.
yeah they do, i just go lazy because this is the verilator specific one that i intend to migrate into chiplevel.sv.tpl
eventually.
o this is also meant for the other PR :)
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.
ok sounds good!
.es_rng_rsp_i ( es_rng_rsp ), | ||
.es_rng_fips_o ( es_rng_fips ), | ||
.ast2pinmux_i ( ast2pinmux ), | ||
.ast_init_done_i ( ast_init_done ), |
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.
just a nit: maybe align these brackets a bit...
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.
but i like them misaligned!
yes will do.
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.
LGTM!
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.
just a nit for the empty line. As verilator PR merged, this PR shouldn't be a problem in my opinion.
hw/top_earlgrey/ip/ast/ast.core
Outdated
@@ -114,4 +114,3 @@ targets: | |||
vcs: | |||
vcs_options: [-timescale=1ns/1ps -l vcs.log] | |||
toplevel: ast | |||
|
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.
It is recommended to have one empty line at the end of the file AFAIK,
- Integrate ast for cw305/cw310/nexysvideo - Add ast to top_englishbreakfast for compatibility - Remove BUFG usage inside ast to avoid cascading BUFG's Signed-off-by: Timothy Chen <[email protected]> [top] Auto generate Signed-off-by: Timothy Chen <[email protected]>
b71953d
to
b178055
Compare
i've addressed the comments, merging. |
Integrate AST into fpga (cw305/cw310/nexysvideo)