Add basic repo

This commit is contained in:
Byron Lathi
2025-06-28 15:48:14 -07:00
parent 369e29557c
commit 8136a7526b
21 changed files with 1069 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
tests:
- name: "chacha20_block"
toplevel: "chacha20_block"
modules:
- "chacha20_block"
sources: "sources.list"

View 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)

View 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>

View File

@@ -0,0 +1 @@
../src/sources.list