cospandesign / nysa-sata Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
On wiki page no any information about configuration of Xilinx GTX-transceiver.
Please check your email. Thank you.
After exercising this core on an FPGA we observed that the back pressure from the hard drives revealed some data loss on the link layer. A work around was implemented, it was a small buffer that would absorb the data transients. This is ugly and hacky and needs to be fixed correctly.
The area in the '/nysa-sata/rtl/link/sata_link_layer_read.v' can be found on line 228 and is related to these registers:
assign d0_buf = bump_buffer[0]; | if (data_scrambler_en) begin
assign d1_buf = bump_buffer[1]; | prev_data <= descr_dout;
assign d2_buf = bump_buffer[2]; | end
assign d3_buf = bump_buffer[3];
The first milestone should be to expose the bugs in a consistent way.
There appears to be a bug in cont_controller.v when the device sends HOLD. I have attached an ILA trace from that module that illustrates the issue.
This is the response to a COMMAND_DMA_READ_EX (8'h25) command for a single block. Near the end of the frame, the drive sends HOLD, HOLD, data_word, EOF. As you can see from the trace, detect_hold is asserted during the last data word. This causes link_layer_read to discard the last data word. (In sata_stack.v, user_dout_size reports 127 data words instead of 128.)
I have attached a diff against cont_controller.v that I believe fixes the issue: I have modified the assignment to hold_cont by ANDing it with cont_detect. (If HOLD had been followed by CONT, then it would be correct to keep detect_hold asserted during that cycle, but when HOLD is not followed by CONT, then detect_hold should no longer be asserted.) I have changed the other *_cont signals to match because I believe they are likely to behave the same way, although I have not observed a problem with them in practice with the devices I have available for testing.
The device that shows this behaviour is a Samsung 860 EVO SSD. We have also been testing with a Micron M500IT SSD, but we have not seen it issue this pattern of HOLDs. So far, only the Samsung drive has excited this problem.
My stimulate not right!
no problem......
Cocotb is tool that allows users to write test benches for HDL in Python. It is much easier to write extensive tests with Python than with verilog.
The following tests should be written an exercise before the sata core is verified:
I found tx_comm_reset and tx_comm_wake signals valid only one clock cycle when I simulate the design,so is this correct?
I can't use iverilog
, can you provide modelsim simulate script?
The stack is difficult to use, the interface needs to be simpler
The synchronizer on this line and one farther below is on the wrong clock domain.
nysa-sata/rtl/generic/ppfifo.v
Line 222 in b6b8806
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.