Skip to content
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

Update the boot addr control #70

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

Konste11ation
Copy link

@Konste11ation Konste11ation commented Oct 30, 2024

This PR updates the switching logic of the boot addr.

The previous solution works well on simulation and FPGA. However, when I performed the post-synthesis simulation, I found the boot addr is synthesized as follows

occamy_soc i_occamy_soc ( .clk_i(clk_i), .rst_ni(n18135), .test_mode_i(
net24681027), .boot_addr_i({net24681028, net24681029, net24681030,
net24681031, net24681032, net24681033, net24681034, net24681035,
net24681036, net24681037, net24681038, net24681039, net24681040,
net24681041, net24681042, net24681043, boot_addr[31], net24681044,
net24681045, net24681046, net24681047, net24681048, net24681049,
boot_addr[24], net24681050, net24681051, net24681052, net24681053,
net24681054, net24681055, net24681056, net24681057, net24681058,
net24681059, net24681060, net24681061, net24681062, net24681063,
net24681064, net24681065, net24681066, net24681067, net24681068,
net24681069, net24681070, net24681071, net24681072, net24681073})
,

Only boot_addr[31] and boot_addr[24] are implemented as DFFs and other bits are just wires.

I have modified the switching logic of the boot addr. Now there are two regs hold the 0x0100_000 and 0x8000_0000 respectively. The external boot_mode_i pin will select from those regs.

I am still waiting for the new synthesis results. If the problem solved, I will push to the chip_antwerp and the main.

@Konste11ation Konste11ation merged commit b4b5dbd into chip_antwerp Nov 6, 2024
2 checks passed
@Konste11ation Konste11ation deleted the fanchen/fixbug-bootrom branch November 6, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants