clash-lib-0.99: prims/verilog/Clash_Prelude_ROM_File.json
[ { "BlackBox" :
{ "name" : "Clash.Prelude.ROM.File.asyncRomFile#"
, "type" :
"asyncRomFile :: KnownNat m -- ARG[0]
=> SNat n -- sz, ARG[1]
-> FilePath -- file, ARG[2]
-> Int -- rd, ARG[3]
-> BitVector m"
, "templateD" :
"// asyncRomFile begin
reg ~TYPO ~GENSYM[ROM][0] [0:~LIT[1]-1];
initial begin
$readmemb(~FILE[~LIT[2]],~SYM[0]);
end
assign ~RESULT = ~SYM[0][~ARG[3]];
// asyncRomFile end"
}
}
]