whitequark changed the topic of #nmigen to: nMigen hardware description language · code https://github.com/nmigen · logs https://libera.irclog.whitequark.org/nmigen
Lilian_ has quit [*.net *.split]
sauce has quit [*.net *.split]
kmehall has quit [*.net *.split]
Lilian has joined #nmigen
kmehall has joined #nmigen
sauce has joined #nmigen
lf has quit [Ping timeout: 252 seconds]
lf_ has joined #nmigen
Degi_ has joined #nmigen
Degi has quit [Ping timeout: 256 seconds]
Degi_ is now known as Degi
emeb_mac has joined #nmigen
lf_ has quit [Ping timeout: 252 seconds]
lf has joined #nmigen
peepsalot has quit [Quit: Connection reset by peep]
peepsalot has joined #nmigen
emeb_mac has quit [Quit: Leaving.]
bvernoux has joined #nmigen
<d1b2> <mattvenn> I'm looking through the nMigen docs
<d1b2> <mattvenn> and following along the upcounter demo, all is fine with the packages installed from git
<d1b2> <mattvenn> then I made an led blinky demo by copying ICEStickPlatform().build(LEDBlinker(), do_program=True)
<d1b2> <mattvenn> and using the ICEBreaker platform I can flash it and get a blinking led - great!
<d1b2> <mattvenn> now I want to simulate it and look at a VCD
<d1b2> <mattvenn> so I copied from the upcounter demo and I'm always getting problems related to the platfrom not being known
<d1b2> <mattvenn> I tried passing it in to the instantiation of Blinky, but that doesn't work. I couldn't find much in the way of reference to what options the simulator has
<d1b2> <mattvenn> anyone know how to do simulations with modules that depend on a platform?
<whitequark> you can't, currently; you need to split the design in two modules, the inner one not depending on a platform
<d1b2> <mattvenn> thanks
<d1b2> <mattvenn> this is what I've come up with
<d1b2> <mattvenn> this works for simulating and programming
<d1b2> <mattvenn> look OK? I want to check I'm not missing some obvious language feature that would make this easier
<whitequark> basically ok
<d1b2> <mattvenn> I'm going to make a video about this, so if you prefer something different, please tell me
<whitequark> I think this is reasonable, but let me DM you about something
<whitequark> oh, wait, Discord, I'll message you on Slack theb
<d1b2> <mattvenn> I want to write a test for my nMigen module and run it against the OpenRAM memory model (which is in Verilog). I looked about for how to include Verilog modules and found this: https://github.com/m-labs/nmigen/issues/1
<d1b2> <mattvenn> Is there anything else out there? For example how to run a test with that included verilog?
<d1b2> <mattvenn> example also doesn't work as lower seems to be deprecated
<d1b2> <dragonmux> You could use the cxxrtl backend to create a testbed and then write your tests that way
<d1b2> <dragonmux> That'd use the verilog sources properly for the sim
<d1b2> <mattvenn> I was wondering if it's possible to do this all within the simulator that comes with nMigen
<d1b2> <mattvenn> but maybe not.
<d1b2> <dragonmux> Pysim can't see the verilog source
<d1b2> <mattvenn> In which case I'll probably switch to cocotb and dump the verilog
<whitequark> the upcoming cxxsim simulator will be able to cosimulate with Verilog
<whitequark> but it's not ready yet
<whitequark> also, you're referring to the wrong GitHub repo above
<d1b2> <mattvenn> oops
emeb has joined #nmigen
_whitenotifier-e has joined #nmigen
<_whitenotifier-e> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://git.io/JMuOe
<_whitenotifier-e> [YoWASP/yosys] whitequark c6da992 - Update dependencies.
<_whitenotifier-e> [YoWASP/yosys] whitequark pushed 1 commit to develop [+0/-0/±1] https://git.io/JMaor
<_whitenotifier-e> [YoWASP/yosys] whitequark 78395c1 - Update dependencies.
<_whitenotifier-e> [nmigen-boards] TomKeddie synchronize pull request #146: butterstick: add board defn for r1.0 - https://git.io/Jqkb2
<_whitenotifier-e> [nmigen-boards] TomKeddie commented on pull request #146: butterstick: add board defn for r1.0 - https://git.io/JMa1j
<_whitenotifier-e> [YoWASP/nextpnr] whitequark pushed 1 commit to release [+0/-0/±1] https://git.io/JMTgJ
<_whitenotifier-e> [YoWASP/nextpnr] whitequark feee710 - Update dependencies.
<_whitenotifier-e> [YoWASP/nextpnr] whitequark pushed 1 commit to develop [+0/-0/±1] https://git.io/JMrWD
<_whitenotifier-e> [YoWASP/nextpnr] whitequark 22af050 - [skip ci] Fix typo in README.
Degi has quit [Ping timeout: 252 seconds]
Degi has joined #nmigen
bvernoux has quit [Quit: Leaving]
emeb has quit [Quit: Leaving.]
emeb_mac has joined #nmigen
bl0x has joined #nmigen
bl0x has quit [Quit: Konversation terminated!]
bl0x has joined #nmigen
bl0x has quit [Client Quit]