lekernel changed the topic of #milkymist to: Mixxeo, Migen, Milkymist-ng & other Milkymist projects :: Logs: http://en.qi-hardware.com/mmlogs
mumptai has quit [Ping timeout: 264 seconds]
ohama has joined #milkymist
kristianpaul has joined #milkymist
kristianpaul has quit [Ping timeout: 245 seconds]
kristianpaul has joined #milkymist
<barmstrong>
i'm having a lot of fun putting a five-stage DLX together with migen
<barmstrong>
i've been using python's unittest module to run the Simulator on my modules, and it's been really nice getting immediate feedback
<barmstrong>
i've used FPGAs a little in the past, but writing testbenches and then trying to verify them by eye was such a huge pain
<barmstrong>
thanks again for this amazing lib!
mumptai has joined #milkymist
<barmstrong>
It presently only supports 'addi', but at least it has five stages, and it executes that one like a champ :)
<barmstrong>
huh. if you assign a too-big signal to another, it just silently truncates? i just spent half an hour tracking down an off-by-one bit width issue :(
Hawk777 has quit [Quit: Coyote finally caught me]
Hawk777 has joined #milkymist
kilae has joined #milkymist
mumptai has quit [Ping timeout: 264 seconds]
sb0 has joined #milkymist
<sb0>
barmstrong, yes, it silently truncates. would be easy to add a warning though.
<sb0>
thanks for the feedback :)
<sb0>
(the problem with the warning, however, is it would trigger on x.eq(x + 1), since the addition adds a carry bit)
<sb0>
so... if you want to do it right, it's not that easy. only the "compare source and dest width" warning is easy.
<wpwrak>
maybe have two sizes ? one the current one and the other the "user-selected" size. they would normally be the same but operations like +1 would not increase the "user-selected" size
<wpwrak>
a warning could then by default check the "user-selected" size only. (and maybe add options for more or less severity)
antgreen has joined #milkymist
Yannou is now known as ysionneau
sb0 has quit [Quit: Leaving]
kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
mumptai has joined #milkymist
<barmstrong>
ok, yeah, I hadn't even thought of that. i guess if you wanted to be very explicit about width issues, you could set migen to a strict mode where you have to slice any add like that e.g. x.eq((x + 1)[0:32]) or whatever