[libre-riscv-dev] [Bug 353] formal proof of soc.regfile classes RegFile and RegFileArray needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed May 27 19:56:53 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=353

--- Comment #9 from Cole Poirier <colepoirier at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #8)
>   18     def elaborate(self, platform):
>   19         m = Module()
>   20         comb = m.d.comb
>   21         m.submodules.dut = dut = Register(32)
> 
> yep not going to work, trying to access domething that has not had elaborate
> called.
> 
> derive Driver *from* Register, instead, and replace the above with
> 
> m = super().elaborate(platform)
> 
> then the Register.elaborate will have been called.
> 
> then self.reg will exist

Thanks very much! Will work on getting the existing Asserts working, then push
another commit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-riscv-dev mailing list