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

LPC: new SM #1

Closed
wants to merge 29 commits into from
Closed

LPC: new SM #1

wants to merge 29 commits into from

Conversation

jal2
Copy link

@jal2 jal2 commented Jul 19, 2017

Hi,

you may have a look at my changes here - if you still care for this project.

I've added some tests (and Makefile will automatically detect and execute them). State machine in lpc.v supports memory cycles as well. There is something wrong in top.v, as I've added more wires in lpc.v interface (but the tools don't complain?).

Next I'll do some documentation based on top.v to better understand the wiring of the modules. I'm a newbie in Verilog and don't understand how the different clock domains (lpc and serial) are synced. A ringbuffer with async read/write which I found in the web looks ways more complex.

Cheers,
Joerg

jal2 added 29 commits July 12, 2017 01:18
- merged both state machines into one
- get rid of the counter, added many more states
- obey the data size of memory accesses
- handle the tar-sync-tar sequence at the end of write accesses

This code needs many more tests!
lpc_tb: added result check
call "make test" in order to run all testbenches
also suppressed output of the for loop in Makefile, target test
derive the module to test from the name of the testbench file
(all until the first -)
added new mem read test with long and short sync
@lynxis
Copy link
Owner

lynxis commented Sep 7, 2017

Hi @jal2
thanks for your PR. Somehow I missed the notification. I'll take a look. Do you tested the PR against a real LPC interface?

@lynxis lynxis closed this May 30, 2020
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