Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Bootloader using S25FL128S #16
what you need are pad instances, the following should do the job:
module generic_pad ( input logic in_i, output logic out_o, inout logic pad, input logic en_i ); assign out_o = pad; assign pad = en_i ? in_i : 1'bZ; endmodule
Instantiate the generic pad for each signal coming from your SPI model. Then depending on the SPI mode (single, quad receiving or quad transmitting) you need to enable the output. Use the
Just for your information: We tested the boot process with Spansion's S25fs256s flash. Depending on how your model may deviate from ours, you may need to adapt the boot code. The readme should clarify the process on how to regenerate the boot code.
Hope this helps.