whitequark[m] changed the topic of #nmigen to: nMigen hardware description language · code https://github.com/nmigen · logs https://freenode.irclog.whitequark.org/nmigen
lkcl has quit [Ping timeout: 264 seconds]
lkcl has quit [Ping timeout: 264 seconds]
jeanthom has quit [Ping timeout: 245 seconds]
jeanthom has quit [Ping timeout: 245 seconds]
lkcl has joined #nmigen
lkcl has joined #nmigen
bvernoux1 has quit [Read error: Connection reset by peer]
bvernoux1 has quit [Read error: Connection reset by peer]
lf has quit [Ping timeout: 244 seconds]
lf has quit [Ping timeout: 244 seconds]
lf has joined #nmigen
lf has joined #nmigen
<_whitenotifier-4> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://git.io/JmFPa
<_whitenotifier-4> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://git.io/JmFPa
<_whitenotifier-4> [YoWASP/yosys] whitequark 71c19b5 - Update dependencies.
<_whitenotifier-4> [YoWASP/yosys] whitequark 71c19b5 - Update dependencies.
<d1b2> <4o> where can i get a fsm example?
<d1b2> <4o> where can i get a fsm example?
<agg> what sort of thing are you looking for 4o?
<agg> what sort of thing are you looking for 4o?
<agg> this is the first thing I have online that I found, https://github.com/adamgreig/daqnet/blob/master/gateware/daqnet/utils.py#L51-L62
<agg> this is the first thing I have online that I found, https://github.com/adamgreig/daqnet/blob/master/gateware/daqnet/utils.py#L51-L62
<d1b2> <4o> can i reference fsm state outside with m.Fsm()... ?
<d1b2> <4o> can i reference fsm state outside with m.Fsm()... ?
<agg> if you use "with m.FSM() as fsm" then the fsm variable as a state attribute which is the current state
<agg> if you use "with m.FSM() as fsm" then the fsm variable as a state attribute which is the current state
<agg> but what do you want to do with the state outside the FSM?
<agg> but what do you want to do with the state outside the FSM?
<d1b2> <4o> split it into 2 processes. 20+ states of transitions and actions will be a mess
<d1b2> <4o> split it into 2 processes. 20+ states of transitions and actions will be a mess
<agg> depending on your objectives you might be able to just refactor the state logic into separate python functions, or extract a common sub-FSM into a separate module which you can control from the top FSM
<agg> depending on your objectives you might be able to just refactor the state logic into separate python functions, or extract a common sub-FSM into a separate module which you can control from the top FSM
<agg> you can't set the next-state from outside the FSM and I guess bad things happen if you try to override the state from outside the FSM (though I've never tried...), I guess you could just have some extra switches on the fsm state outside of it but maybe you can achieve the same code organisation using normal python tools
<agg> you can't set the next-state from outside the FSM and I guess bad things happen if you try to override the state from outside the FSM (though I've never tried...), I guess you could just have some extra switches on the fsm state outside of it but maybe you can achieve the same code organisation using normal python tools
<d1b2> <4o> vice versa, i want with m.If(fsm.state == 'one') somwhere else in the code
<d1b2> <4o> vice versa, i want with m.If(fsm.state == 'one') somwhere else in the code
lkcl has quit [Ping timeout: 264 seconds]
lkcl has quit [Ping timeout: 264 seconds]
lkcl has joined #nmigen
lkcl has joined #nmigen
<d1b2> <4o> is there a option to set default value for a signal in a switch as one can do in hdl? aka https://paste.debian.net/1190378/
<d1b2> <4o> is there a option to set default value for a signal in a switch as one can do in hdl? aka https://paste.debian.net/1190378/
<agg> with m.Default() at the end gives you a default case
<agg> with m.Default() at the end gives you a default case
<d1b2> <4o> default case differs from default value
<d1b2> <4o> default case differs from default value
<agg> there's a few options, you can use Signal(reset=12) to set a value it takes at reset, you could add an assignment like you have already and it will apply unless overridden by any of the case statements, or you could assign the default value in the default case
<agg> there's a few options, you can use Signal(reset=12) to set a value it takes at reset, you could add an assignment like you have already and it will apply unless overridden by any of the case statements, or you could assign the default value in the default case
<agg> if you have `m.d.comb += b.eq(12)` and later `with m.If(a): m.d.comb += b.eq(13)`, then b is Mux(a, 13, 12)
<agg> if you have `m.d.comb += b.eq(12)` and later `with m.If(a): m.d.comb += b.eq(13)`, then b is Mux(a, 13, 12)
<d1b2> <4o> wohoo, great. thanks
<d1b2> <4o> wohoo, great. thanks
<d1b2> <4o> hmmm. will this work as a way to get fsm state outside the with m.Fsm() ? https://paste.debian.net/1190379/
<d1b2> <4o> hmmm. will this work as a way to get fsm state outside the with m.Fsm() ? https://paste.debian.net/1190379/
<agg> no, you probably want something more like `state = None; with m.FSM() as fsm: state = fsm.state`
<agg> no, you probably want something more like `state = None; with m.FSM() as fsm: state = fsm.state`
<agg> also if you scroll up a little in this room someone asked about exactly that and got an example, last thing before your message
<agg> also if you scroll up a little in this room someone asked about exactly that and got an example, last thing before your message
<d1b2> <4o> true. that didn't click as an answer. still getting used to thinking both in python and hdl
<d1b2> <4o> true. that didn't click as an answer. still getting used to thinking both in python and hdl
Degi_ has joined #nmigen
Degi_ has joined #nmigen
Degi_ is now known as Degi
Degi_ is now known as Degi
Degi has quit [Ping timeout: 240 seconds]
futarisIRCcloud has joined #nmigen
futarisIRCcloud has joined #nmigen
lkcl has quit [Ping timeout: 240 seconds]
lkcl has quit [Ping timeout: 240 seconds]
lkcl has joined #nmigen
lkcl has joined #nmigen
PyroPeter_ has joined #nmigen
PyroPeter_ has joined #nmigen
PyroPeter_ is now known as PyroPeter
PyroPeter_ is now known as PyroPeter
PyroPeter has quit [Ping timeout: 240 seconds]
PyroPeter has quit [Ping timeout: 240 seconds]
Bertl_oO is now known as Bertl_zZ
Bertl_oO is now known as Bertl_zZ
lkcl has quit [Ping timeout: 240 seconds]
lkcl has quit [Ping timeout: 240 seconds]
lkcl has joined #nmigen
lkcl has joined #nmigen
lkcl has quit [Ping timeout: 256 seconds]
lkcl has quit [Ping timeout: 256 seconds]
lkcl has joined #nmigen
lkcl has joined #nmigen
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
revolve has quit [Read error: Connection reset by peer]
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
revolve has joined #nmigen
<_whitenotifier-4> [nmigen] slan opened pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuk
<_whitenotifier-4> [nmigen] slan opened pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuk
<_whitenotifier-4> [nmigen] codecov[bot] commented on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] commented on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] whitequark reviewed pull request #602 commit - https://git.io/Jmbga
<_whitenotifier-4> [nmigen] whitequark reviewed pull request #602 commit - https://git.io/Jmbga
emeb_mac has quit [Quit: Leaving.]
emeb_mac has quit [Quit: Leaving.]
chipmuenk has joined #nmigen
chipmuenk has joined #nmigen
jeanthom has joined #nmigen
jeanthom has joined #nmigen
lkcl has quit [Ping timeout: 240 seconds]
lkcl has quit [Ping timeout: 240 seconds]
lkcl has joined #nmigen
lkcl has joined #nmigen
FFY00_ has quit [Ping timeout: 244 seconds]
FFY00_ has quit [Ping timeout: 244 seconds]
FFY00_ has joined #nmigen
FFY00_ has joined #nmigen
lkcl has quit [Ping timeout: 260 seconds]
lkcl has quit [Ping timeout: 260 seconds]
lkcl has joined #nmigen
lkcl has joined #nmigen
_whitelogger_ has quit [Remote host closed the connection]
_whitelogger_ has joined #nmigen
_whitelogger_ has joined #nmigen
jeanthom has quit [Ping timeout: 245 seconds]
jeanthom has quit [Ping timeout: 245 seconds]
jeanthom has joined #nmigen
jeanthom has joined #nmigen
Bertl_zZ is now known as Bertl
Bertl_zZ is now known as Bertl
Raito_Bezarius has quit [Ping timeout: 264 seconds]
Raito_Bezarius has quit [Ping timeout: 264 seconds]
revolve has quit [Read error: Connection reset by peer]
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
revolve has joined #nmigen
Raito_Bezarius has joined #nmigen
Raito_Bezarius has joined #nmigen
bsmt has quit [Quit: Ping timeout (120 seconds)]
bsmt has quit [Quit: Ping timeout (120 seconds)]
bsmt has joined #nmigen
bsmt has joined #nmigen
Bertl is now known as Bertl_oO
Bertl is now known as Bertl_oO
jeanthom has quit [Ping timeout: 260 seconds]
jeanthom has quit [Ping timeout: 260 seconds]
<_whitenotifier-4> [nmigen] slan synchronize pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuk
<_whitenotifier-4> [nmigen] slan synchronize pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuk
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
Raito_Bezarius has quit [Ping timeout: 264 seconds]
Raito_Bezarius has quit [Ping timeout: 264 seconds]
Bertl_oO is now known as Bertl
Bertl_oO is now known as Bertl
pftbest_ has joined #nmigen
pftbest_ has joined #nmigen
pftbest has quit [Ping timeout: 240 seconds]
pftbest has quit [Ping timeout: 240 seconds]
jeanthom has joined #nmigen
jeanthom has joined #nmigen
<vup> agg: @4o, actually if you do something like `with m.FSM() as fsm: ...` the `fsm` object is actually available outside of the `with` block
<vup> agg: @4o, actually if you do something like `with m.FSM() as fsm: ...` the `fsm` object is actually available outside of the `with` block
jeanthom has quit [Ping timeout: 245 seconds]
jeanthom has quit [Ping timeout: 245 seconds]
jeanthom has joined #nmigen
jeanthom has joined #nmigen
revolve has quit [Read error: Connection reset by peer]
revolve has quit [Read error: Connection reset by peer]
revolve has joined #nmigen
revolve has joined #nmigen
jeanthom has quit [Ping timeout: 276 seconds]
jeanthom has quit [Ping timeout: 276 seconds]
emeb has joined #nmigen
emeb has joined #nmigen
jeanthom has joined #nmigen
jeanthom has joined #nmigen
emeb_mac has joined #nmigen
emeb_mac has joined #nmigen
<_whitenotifier-4> [nmigen] slan synchronize pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuk
<_whitenotifier-4> [nmigen] slan synchronize pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuk
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
<_whitenotifier-4> [nmigen] codecov[bot] edited a comment on pull request #602: Add synth_design_options override for vivado - https://git.io/Jmbuw
chipmuenk has quit [Quit: chipmuenk]
chipmuenk has quit [Quit: chipmuenk]
Raito_Bezarius has joined #nmigen
Raito_Bezarius has joined #nmigen
jeanthom has quit [Ping timeout: 246 seconds]
jeanthom has quit [Ping timeout: 246 seconds]