whitequark changed the topic of #yosys to: Yosys Open SYnthesis Suite: https://github.com/YosysHQ/yosys/ | Channel logs: https://libera.irclog.whitequark.org/yosys/ | Bridged to #yosys:matrix.org
tpb has quit [Remote host closed the connection]
tpb has joined #yosys
shoragan has quit [Quit: quit]
shoragan has joined #yosys
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #yosys
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #yosys
tokamak has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
tokamak has joined #yosys
singham has joined #yosys
<singham> tnt: Thanks, I read the docs for the 3 tiles
<singham> As a hello world, I want to assign the pin M12 to zero by editing asc file
<singham> How do I figure out logic cell closest to pin M12 in iCE40HX8K?
<singham> Also, how is the grid laid out?
<singham> Thanks in advance
<singham> Sorry, I meant assigning M12 pin to 1
<singham> An led is connected to M12
<singham> Basically, I want to store all values of LUT close to IO pin to 1 and connect via span interconnects to pad
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #yosys
singham has quit [Remote host closed the connection]
<Myrl-saki> FWIW, form what I understand, doesn't HeAP do that for you? At least that's what I understood from the rationale.
singham has joined #yosys
* singham was afk
* singham is back
<Myrl-saki> I just realized I replied exactly as you left lol
<singham> sorry
<singham> Can you please repeat?
<Myrl-saki> singham: IIRC, you don't need to manually place the logic cell, because that's what HeAP's whole rationale is.
<Myrl-saki> But I'm not 1000% sure.
<Myrl-saki> (I'm relatively new to this.)
<singham> What's HeAP?
<singham> I wrote ramtest program for testing RAM on Olimex HX8K board
<singham> and it is not working correctly
<singham> I mean verilog program
<singham> For ramtest, I believe I'd rather write asc directly and make FSMs on paper
<Myrl-saki> HeAP is a placement algorithm which nextpnr also supports.
<singham> I'm talking about writing asc by hand and then going to bitstream with icepack
<singham> It doesn't concern nextpnr
singham has quit [Read error: Connection reset by peer]
ec has quit [Remote host closed the connection]
singham has joined #yosys
singham has quit [Read error: Connection reset by peer]
singham has joined #yosys
<lofty> singham: I have to ask why you want to do this, because this is setting yourself up for misery.
<singham> I find it simpler to do fsm and binary code than verilog
<lofty> At least if you were using nextpnr you could still entirely manually place and route everything.
<singham> Also, procedural things confuse me in HDL
<singham> How do I figure out logic cell closest to pin M12 in iCE40HX8K? And assign it to 1 in asc file
<lofty> which chip package?
<singham> ct256
<lofty> M12 is X27/Y0/io1, so that would be X27/Y1/lc0
<lofty> singham: ^
<lofty> how do you assign it to 1? well, I would put a LUT4 in there with an all-ones LUT mask
<singham> How to find that 27 0 is M12?
<singham> Which logic cell is closest to it?
<singham> 27 0 ?
<singham> I mean 27 1?
<singham> lofty: Beautiful, beautiful! Thank you so much!
<singham> Bow down to you
<lofty> I still strongly urge you not to try to directly write an ASC from this
<lofty> I could probably write your FSM faster than you could write the necessary infrastructure needed to do this manually
<singham> How?
<singham> :D
<lofty> because the tooling already knows all of this, and is designed to make your life as easy as possible
<singham> I don't think so.
<lofty> you were asking how to make a logic cell emit a 1
<lofty> if you have to ask that, you probably don't presently possess the knowledge required to encode your logic in the hardware
singham has quit [Read error: Connection reset by peer]
singham has joined #yosys
<singham> Well, I'm an IITian and IIT students cover quite some ground in mere days
<singham> Don't worry about that. All tools will be made as simple as possibly can and will be omitted altogether to help the user!
<lofty> this is a recipe for burnout, I think.
<singham> I mean I'd update and contribute if need be
<singham> By default, it is not a state of burnout
<singham> By default, our IITian's state of mind is energetic and independent
<lofty> I think you completely misunderstood me there
<lofty> I work for YosysHQ. I work on Yosys and nextpnr and the open tooling in general.
<lofty> so, I would like to say I have a reasonably informed opinion on this topic.
<singham> The only issue I find is help is scarce even amongst people who should align. See, we both want to improve coding FPGAs and so you helped me but normally, I don't find such co-operation
<singham> Thanks again man!
<lofty> don't get me wrong, I think Verilog is bad
<lofty> but manually playing "connect the dots" on an FPGA will not scale for anything more than trivial tasks
<lofty> people just do not have time for it
<lofty> even if they did, nextpnr already supports that!
<singham> Yeah, I too feel so many transistors aren't needed.
<singham> I just have to implement a few instructions happening again and again like a processor
<lethalbit> yeah, using a pnr tool is the best way, doing it manually is an exercise in madness and tbh likely a huge waste of time
<lethalbit> trust lofty here, they know what they're talking about
<singham> But when things don't work, it's even worse to find the issue in the code
<singham> I mean verilog code
<lofty> that's what simulators are for
<lethalbit> ^^
<singham> Simulator and synthesis are different
<lethalbit> Also you could use something else, like VHDL, or Chisle, et. al.
<singham> With Synthesis, so many features are not even present
<lofty> they are different, yes, but if your design simulates correctly it should synthesis correctly
<jix> singham: there's post-synth simulation for that
<lofty> or you could use a language which does not have such a difference in features between simulation and synthesis, like Amaranth or such
<lethalbit> hi jix! it's been a while, hope you're doing well :3
<lofty> o/ jix
singham has quit [Remote host closed the connection]
singham has joined #yosys
<singham> I thank you all
* singham ought to leave
singham has quit [Remote host closed the connection]
<jix> lethalbit: hi! sry went afk right after my last msg (and will again shortly)... can't complain overall ... your collab stream with lina the other day looks really cool from the short peek I had so far, meaning to watch it fully when I can finde the time, looks like it's at the right level and pace for me if I want to finally figure out magic and related stuff
<lethalbit> it's all good~
<lethalbit> It's some really basic intro stuff, I wasn't able to go into a lot of details for questions that Lina asked as it got to the edge of my knowledge but I hope it's helpful enough for people just getting into it
<lethalbit> I was also pretty sleepy during it so that doesn't help, but *shrug*
<jix> well on the asic side I don't even know the basic stuff, I know some basic things in theory but never got around to use any of the tooling
<lethalbit> Yeah,
<lethalbit> the main issue imo is the tooling atm, OpenLANE is good, but for the manual cell layout magic is a mess and kinda janky and klayout is just not as capable so it's not a good replacment
<lethalbit> so i'm poking on writing my own VLSI Layout tool that takes a bit after KiCads pcbnew so hopefully it'll be more useable :v
<lethalbit> anywho, i've gotta crash, have a good one!
<jix> the thing I saw so far was part of you showing how to actually use magic and the one time I wanted to do that in the past I didn't have the patience to figure that out
<lethalbit> fair, magic is pretty hard to divine how to use
<lethalbit> and even when you know how to use it, it's kinda moody
schaeg has joined #yosys
schaeg has quit [Ping timeout: 255 seconds]
schaeg has joined #yosys
singham has joined #yosys
<singham> Folks
singham has quit [Ping timeout: 255 seconds]
unkraut has quit [Remote host closed the connection]
unkraut has joined #yosys
schaeg_ has joined #yosys
schaeg has quit [Ping timeout: 260 seconds]
derekn has quit [Ping timeout: 264 seconds]
derekn has joined #yosys
nonchip has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nonchip has joined #yosys
bjorkintosh has quit [Ping timeout: 240 seconds]