Add basic repo
This commit is contained in:
Binary file not shown.
Binary file not shown.
6
ChaCha20_Poly1305_64/sim/chacha20.yaml
Normal file
6
ChaCha20_Poly1305_64/sim/chacha20.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
tests:
|
||||
- name: "chacha20_block"
|
||||
toplevel: "chacha20_block"
|
||||
modules:
|
||||
- "chacha20_block"
|
||||
sources: "sources.list"
|
||||
21
ChaCha20_Poly1305_64/sim/chacha20_block.py
Normal file
21
ChaCha20_Poly1305_64/sim/chacha20_block.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import cocotb
|
||||
|
||||
|
||||
from cocotb.clock import Clock
|
||||
from cocotb.triggers import Timer, RisingEdge, FallingEdge
|
||||
|
||||
CLK_PERIOD = 4
|
||||
|
||||
|
||||
class TB:
|
||||
def __init__(self, dut):
|
||||
self.dut = dut
|
||||
|
||||
cocotb.start_soon(Clock(self.dut.i_clk, CLK_PERIOD, units="ns").start())
|
||||
|
||||
@cocotb.test
|
||||
async def test_sanity(dut):
|
||||
tb = TB(dut)
|
||||
|
||||
await RisingEdge(tb.dut.i_clk)
|
||||
await RisingEdge(tb.dut.i_clk)
|
||||
8
ChaCha20_Poly1305_64/sim/results.xml
Normal file
8
ChaCha20_Poly1305_64/sim/results.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<testsuites name="results">
|
||||
<testsuite name="all" package="all">
|
||||
<property name="random_seed" value="1751043171" />
|
||||
<testcase name="test_sanity" classname="chacha20_block" file="/home/byron/Projects/crypto/ChaCha20_Poly1305_64/sim/chacha20_block.py" lineno="12" time="0.0004475116729736328" sim_time_ns="0.0" ratio_time="0.0">
|
||||
<failure message="Test failed with RANDOM_SEED=1751043171" />
|
||||
</testcase>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
1
ChaCha20_Poly1305_64/sim/sources.list
Normal file
1
ChaCha20_Poly1305_64/sim/sources.list
Normal file
@@ -0,0 +1 @@
|
||||
../src/sources.list
|
||||
Reference in New Issue
Block a user