sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
balrog has joined #m-labs
<mithro>
sb0: Do you have any existing code to make the lm32 call the exception_handler code in libbase on things like bus errors? It seems the or1k is configured to do that but not the lm32
<cr1901_modern>
mithro: Does lm32 even use the WB error signals?
raghu has quit [Quit: Page closed]
froggytoad has joined #m-labs
<mithro>
The one I just spent forever tracking down was a divide by zero
<cr1901_modern>
Oh, that's not a bus error I don't think? In any case, I think the exception handlers are declared as "weak" symbols, so you can override them in your code for custom handling
* cr1901_modern
will check in a bit once his todo stack is done for the night ._. ...
froggytoad has quit [Ping timeout: 268 seconds]
<sb0>
mithro, I don't
_whitelogger has joined #m-labs
rohitksingh_work has joined #m-labs
froggytoad has joined #m-labs
<GitHub121>
[migen] sbourdeauducq pushed 1 new commit to master: https://git.io/v7G48
<GitHub179>
[artiq] jordens commented on issue #806: Please add proper commit messages stating what was done and if possible why it was done and how it was done. The ones auto-generated by github are insufficient. https://github.com/m-labs/artiq/pull/806#issuecomment-318310116
<GitHub139>
[artiq] jordens commented on issue #806: Please add proper commit messages stating what was done and if possible why it was done and how it was done. The ones auto-generated by github are insufficient. https://github.com/m-labs/artiq/pull/806#issuecomment-318310116
<Ishan_Bansal>
I am getting the following error on running my code:
<Ishan_Bansal>
mithro : On making the print in the structure, I am getting the following statement.
<Ishan_Bansal>
(<litex.gen.fhdl.structure._Assign object at 0x7f1fee798b00>, <litex.gen.fhdl.structure._Assign object at 0x7f1fee7a5940>, None, None, <litex.gen.fhdl.structure.If object at 0x7f1fee7a50f0>, <litex.gen.fhdl.structure.If object at 0x7f1fee7aa6a0>, <litex.gen.fhdl.structure.If object at 0x7f1fee7aaac8>, <litex.gen.fhdl.structure.If object at 0x7f1fee7af080>, <litex.gen.fhdl.structure.If object at 0x7f1fee7af2b0>)
<Ishan_Bansal>
but this gives no clue where the error is.
<mithro>
The none objects would be my guess
<mithro>
Ishan_Bansal: my guess is you are calling functions which are returning none
<Ishan_Bansal>
mithro, yes there are two such functions, but are they a problem.
<mithro>
Ishan_Bansal: the reason your test works is because you are calling the function in a very different way
<mithro>
Details matter
<mithro>
Ishan_Bansal: compare how you are using the dc_rom function in the test bench rather than in your huffmancore.py
<Ishan_Bansal>
mithro : Ok, is it because in the huffmancore I am using the dc_rom inside the self.sync ?
<Ishan_Bansal>
I think I will get the idea.
<mithro>
But more generally, it is very rare to need functions - you should normal be using modules
<attie>
Ishan_Bansal: I think it would really help if you acquired a better foundation in object oriented python, quite independent of migen
<attie>
you make a lot of mistakes that seem to be rooted in not understanding how objects work.
<attie>
having a function that is not a class method but whose first argument is "self" should be ringing so many alarm bells in your head that you wouldn't even finish the line.
<Ishan_Bansal>
attie : I am working on that.
sb0 has quit [Remote host closed the connection]
<GitHub19>
[smoltcp] whitequark pushed 4 new commits to master: https://git.io/v7Zfy
<GitHub19>
smoltcp/master 10585ad whitequark: Rearrange errors and clarify their semantics.
<GitHub19>
smoltcp/master 50ae82d whitequark: Update a stale docstring.