1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00

524 Commits

Author SHA1 Message Date
aolofsson
289024fd89 Flattening directory tree (again)
- Creating an arbitrary 'src' directory really doesn't help much...
- Goal is to make each folder self contained
- Make meta repos and individual repos have the same directory structure
2022-06-21 14:48:48 -04:00
aolofsson
e89f815b38 Going back to placing all folders in src
- Only way to scale, final decision!!
2022-05-29 08:45:00 -04:00
Andreas.Olofsson
d6f5de24d7 Changing hierarchy to promote blocks 2020-01-28 18:12:57 -05:00
Andreas Olofsson
7094173ae9 Reorg! Why?
- The top level directory was not scaling, too imposing
- Friendlier to download a repo and see a finite number of top level dirs
- We are just getting started...
2016-03-22 08:13:40 -04:00
Andreas Olofsson
4d172960c1 Renaming the generic dut template file 2016-03-11 16:40:30 -05:00
Andreas Olofsson
14614bcfa5 Adding new clock signals to axi testbench 2016-03-08 19:35:25 -05:00
RainerWasserfuhr
eb01ecac71 Update README.md
typo
2016-03-02 02:25:02 +01:00
Andreas Olofsson
274f5f93c6 Renamed C2C to MIO 2016-02-26 22:51:35 -05:00
Andreas Olofsson
a5194a30a3 Reorg
-Renaming constants files as ".vh"
-Cleanup parameters
2016-02-26 19:08:40 -05:00
Andreas Olofsson
800c251717 Making target a parameter instead of 1/0 2016-02-26 17:15:39 -05:00
Andreas Olofsson
0437727d94 Adding new clocks to interface 2016-02-26 17:14:23 -05:00
Andreas Olofsson
3fc14dd0c1 Moving to "config" for IP
-Need to supply a config constant file at command line
(not with "include")
2016-02-26 17:13:20 -05:00
Andreas Olofsson
dfbe0cda60 Merge pull request #49 from olajep/mailbox-sw
mailbox: Update software example
2016-02-16 23:09:40 -05:00
Ola Jeppsson
e60ef57c0e mailbox: Update software example
Switch to kernel devel branch compatible IOCTL's.

Signed-off-by: Ola Jeppsson <ola@adapteva.com>
2016-02-15 10:50:07 +00:00
Andreas Olofsson
4b48d138be Merge branch 'master' of https://github.com/parallella/oh 2016-02-03 23:13:48 -05:00
Andreas Olofsson
29237f0639 Fixed burst bit location
-turns out chip design was different
-off by one...
2016-02-03 23:11:46 -05:00
Ola Jeppsson
e3c3569a3e elink: etx_cfg: Fix transmit mode bits typo
Signed-off-by: Ola Jeppsson <ola@adapteva.com>
2016-01-27 20:41:18 +01:00
Andreas Olofsson
f69b8c7b59 Merge pull request #41 from olajep/mailbox-test
Add kernel mailbox interface test
2016-01-21 11:07:46 -06:00
Ola Jeppsson
31ffb41247 Add kernel mailbox interface test
Kernel code here, will be included in official 'parallella-linux'
when API:s have stabilized...
https://github.com/olajep/parallella-linux/tree/wip-mailbox

```
Testing blocking wait with interrupts
i: 00 from: 0x00000000 data: 0x00000000
i: 01 from: 0x00000000 data: 0x00000001
i: 02 from: 0x00000000 data: 0x00000002
i: 03 from: 0x00000000 data: 0x00000003
i: 04 from: 0x00000000 data: 0x00000004
i: 05 from: 0x00000000 data: 0x00000005
i: 06 from: 0x00000000 data: 0x00000006
i: 07 from: 0x00000000 data: 0x00000007
i: 08 from: 0x00000000 data: 0x00000008
i: 09 from: 0x00000000 data: 0x00000009
i: 10 from: 0x00000000 data: 0x0000000a
i: 11 from: 0x00000000 data: 0x0000000b
i: 12 from: 0x00000000 data: 0x0000000c
i: 13 from: 0x00000000 data: 0x0000000d
i: 14 from: 0x00000000 data: 0x0000000e
i: 15 from: 0x00000000 data: 0x0000000f

Reading 1000000 messages
received: 1000000       errors: 0       time: 11.65s    rate: 85808
msgs/s
```

Signed-off-by: Ola Jeppsson <ola@adapteva.com>
2016-01-21 16:31:55 +00:00
Andreas Olofsson
e466764706 Merge branch 'master' of https://github.com/parallella/oh 2016-01-20 10:53:42 -05:00
Andreas Olofsson
2cc776e926 Updating mailbox documentation 2016-01-20 10:53:29 -05:00
Andreas Olofsson
1b6f1ecaef Interface cleanups 2016-01-20 10:51:57 -05:00
Andreas Olofsson
70dc4fd5a6 Separating waits for config and TX path
...still needs work
2016-01-20 10:51:26 -05:00
Andreas Olofsson
1afc3e93ad Adding mailbox prog full to RX wait signal 2016-01-20 10:50:29 -05:00
Ola Jeppsson
a4e7ebe47b Add burst test
Add test for writes to same address. Apparently consecutive 64-bit
writes to the same address can turn into burst writes.

From:
https://github.com/parallella/oh/issues/37

Andreas:
> Remembered that we have a long forgotten mode in the epiphany chip elink
> (not impemented in the fpga elink) that creates bursts when you write
> doubles to the same address. (F**K!)
> So the writes were likely coming in as bursts.
> Looks like the mailbox works fine when you write in "int"s (I tested it on
> the board with consecutive)
> (see "mailbox_test" in elink/sw0)

Signed-off-by: Ola Jeppsson <ola@adapteva.com>
2016-01-20 11:59:23 +00:00
Andreas Olofsson
1f42630f1c Adding sync fifo for mailbox as option 2016-01-19 23:34:56 -05:00
Andreas Olofsson
2d46301b65 Fixing clocking diagram 2016-01-19 23:33:00 -05:00
Andreas Olofsson
9a14e0787a Adding test to detect mailbox burstin 2016-01-20 04:31:03 +00:00
Andreas Olofsson
e86567241d Cleanup 2016-01-19 16:06:38 -05:00
Andreas Olofsson
041f477363 Cleaned up the falling edge of frame
-The current testbench has a big pause between frames, whereas the chip might push out back to back frames with only a single cycle pause between frames. It seems possible that the old logic would have been a problem, since there two incorrect states that took 2 cycles to settle. This would not have been a problem with bursting or frames with many nops between. Let's see....
-The correct way to verify this is to 1.) Improve TX to make performance as good as on the chip (less stalls) 2.) Create a testbench witht the chip reference code.
-In the meantime, we compile and pray...
2016-01-19 16:03:15 -05:00
Andreas Olofsson
ca5db9fa4d Interface cleanup
- fifo interface changes
- maxi/saxi name changes
- general code cleanup
- register remapping for mailbox
2016-01-19 13:33:08 -05:00
Andreas Olofsson
1a7a76e190 Removing filter logic for ID match (bug fix)
- This was moved to arbiter block
2016-01-19 13:32:26 -05:00
Andreas Olofsson
e8794b780c Simplifying axi_elink testbench
- Too much junk in there, couldn't understand my own logic 4 weeks later...
- emesh_if is a disaster, I have yet to find a way to write code that lets me remember the pass through bidirectoral logic for more than 1 day. Removed the interface and replaced it with 3 lines of code.
2016-01-19 13:30:09 -05:00
Andreas Olofsson
ce7c89ce1e Fixing read response logic
- Should only pass back read response EGROUP_RR
- Otherwise there would be a match on writing to MAILBOX
2016-01-19 13:27:22 -05:00
Andreas Olofsson
240e5b433c Moving mailbox registers to new addres
-Mailbox is a pretty useful little block, registers don't belong in the RX space
-Moved registers to the "MESH" group block at bits [10:8].
-Feel good about this, should not change...
-Has been tested  to work with test/test_regs.emf
-For new register address, see README.md

cc @olajep @peteasa
2016-01-16 14:44:35 -05:00
Andreas Olofsson
0bcab09269 Cleaning up unused constants 2016-01-16 14:42:57 -05:00
Andreas Olofsson
cd17b8130d Adding support for 64core board 2016-01-13 15:32:46 -05:00
Andreas Olofsson
c6bf2e2bb9 Removing "bid" parameter from emmu
-Access signal decoded from outside
2016-01-13 15:31:38 -05:00
Andreas Olofsson
6f6413eddc Updated regs test 2016-01-13 15:30:37 -05:00
Andreas Olofsson
b56da83aeb Clarifying R/W permissions on some registers 2016-01-12 09:02:37 -05:00
Andreas Olofsson
57c44bafb1 Fixing MMU write access
- MMU was being written when it shouldn't
2016-01-12 09:02:00 -05:00
Andreas Olofsson
804edcbc67 Adding reset signal to burst 2016-01-12 09:00:36 -05:00
Andreas Olofsson
f283b87e9d Adding elink_monitor
- Burst not supported
2016-01-12 08:38:45 -05:00
Andreas Olofsson
2bbe1e11b1 Change to TXCFG register!
- Made room for extra bit in ctrlmode register
2016-01-11 21:35:57 -05:00
Andreas Olofsson
bed1ba5556 Fixing write to TX register bug
- The write transaction was incorrectly piped through to axi slave
2016-01-11 20:50:40 -05:00
Andreas Olofsson
99e58fb56e Adding reset to pipeline
- More conservative (only 2 more flops)
2016-01-11 20:49:31 -05:00
Andreas Olofsson
a68bba1572 Cleaning up register interface
- Removed the cfgif block, too confusing. There is a good lesson here. Probably the n'th time I that I have been overzealous about reuse. When you end up adding a parameter to a block that duplicates the logic 2X it's always better to create two separate blocks...
- Changed the register access interface to packet format
- Change the priority on the etx_arbiter to pick read responses first
- Removed redundant signals
- Took away the read resonse bypass on remap in tx for now..
- Removed defparams (convention)
- Unified wait signal on tx
- Fixed cfg wait
-
2016-01-11 17:35:53 -05:00
Andreas Olofsson
2279137d39 Merge branch 'master' of https://github.com/parallella/oh
Conflicts:
	emailbox/hdl/emailbox.v
2016-01-10 16:37:20 -05:00
Andreas Olofsson
32522280e6 Cleanup 2016-01-10 15:58:28 -05:00
Andreas Olofsson
5f16bd672e Changing test extension to "*emf"
- The last field is a delay argument for stimulus
2016-01-10 15:55:58 -05:00