Coder Social home page Coder Social logo

stdcores's People

Contributors

rftafas avatar

Stargazers

Márcio Ribeiro avatar  avatar  avatar Pedro Henrique avatar  avatar Ismael Pérez R. avatar marph91 avatar Unai Martinez-Corral avatar Rodrigo A. Melo avatar T. Meissner avatar

Watchers

 avatar

stdcores's Issues

Leitura de mais de 1 word

Tafas, eu nao to conseguindo botar o mestre pra ler mais de 1 word. Pra isso acontecer tenho que mudar umas coisas no spi_control_mq.
Um exemplo é em:

when inc_addr_st =>   
     case command is
           when WRITE_c       =>
             tmp := wait4spi_st;
           when FAST_WRITE_c  =>
             tmp := wait4spi_st;
           when READ_c        =>
             tmp := read_st;
           when FAST_READ_c   =>
             tmp := read_st;
           when others        =>
             tmp := wait_forever_st;
         end case;

trocar o estado read_st por act_st. O read_st nao faz nada na maquina de estados, e aí depois de incrementar o endereco, a maquina de estados vai pra wait_forever_st

BRESP and RRESP

If my slave leaves the xRESP signal in an error state when in Idle, during the next operation, the master will accuse error immediately, not waiting for the xVALID signal to go high.

if M_AXI_BVALID = '1' and M_AXI_BRESP(1) = '0' then
mst_exec_state <= BUS_DONE;
M_AXI_BREADY <= '0';
elsif M_AXI_BRESP(1) = '1' then
mst_exec_state <= BUS_DONE;
M_AXI_BREADY <= '0';
bus_error_o <= '1';
else
mst_exec_state <= INIT_WRITE;
end if;`

I changed the behavior of the slave to keep the RESP in OK when idle, and only set the error when VALID is high, then it works ok, but should this piece of the AXI master be changed?

Vivado complaints

When i try to run synthesis, vivado tells me the following:
[Synth 8-26] attribute 'event not implemented [spi_slave.vhd:144]

it is this line here:
elsif spck_s = edge_s and spck_s'event then

when i make edge_s as a constant, it works ok

Address counter optimization

Must look for #8

Instead of adding data_word_size, figure how many addr_v bits will always be zero and keep adding just 1.

fast read

Opa, to tentando usar o fast_read aqui e aparentemente ele nao faz a leitura no AXI-M, só fica jogando o ACK pra fora
fiz uma simulacao, segue o waveform (já que voce gosta muito de waveform :) ):
image

to fazendo alguma coisa errada?

Remove output latch from SPI Slave on oversampled mode

Native clock mode used an latch on output as means to give as much time as possible to AXI Bus to respond. Since oversampled mode has MCK>8*SPCK, probably this latch won't be necessary.

One good improvement is to have this as a flipflop on oversampled mode instead of a latch.

sclk frequency

Hi, me again
what is the theoretical max sclk frequency for this block? In native and in oversampled modes.

In my tests, axi clk is 100 Mhz, with sclk in 12 MHz the reads lose the first byte for each word. There is a latency in between the act_st and the wait4spi_st (when it puts the value on spi_txdata_o). When the spi is a bit faster, this is enough for the state machine to lose the first spi_txen_i = 1.
In the oversampled mode only the fast read is working in my tests. In the normal read, the first bit in the first byte can come wrong, but i did not have time to investigate it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.