Monday, 2022-05-09

*** tpb <[email protected]> has joined #yosys00:00
*** Klotz <Klotz!~Klotzoman@gateway/tor-sasl/klotz> has quit IRC (Quit: Klotz)00:16
*** ec <ec!~ec@gateway/tor-sasl/ec> has joined #yosys01:03
*** lumo_e <[email protected]> has quit IRC (Ping timeout: 276 seconds)04:00
*** emeb_mac <[email protected]> has joined #yosys04:24
*** ecs <ecs!ecs@user/ecs> has quit IRC (*.net *.split)05:04
*** esden <[email protected]> has quit IRC (*.net *.split)05:04
*** Stary <Stary!~Stary@hacksoc/infrastructure> has quit IRC (*.net *.split)05:04
*** benreynwar <[email protected]> has quit IRC (*.net *.split)05:04
*** oldtopman <[email protected]> has quit IRC (*.net *.split)05:04
*** tnt <tnt!~tnt@osmocom/tnt> has quit IRC (*.net *.split)05:04
*** ecs <ecs!ecs@user/ecs> has joined #yosys05:04
*** benreynwar <[email protected]> has joined #yosys05:04
*** oldtopman <[email protected]> has joined #yosys05:04
*** esden <[email protected]> has joined #yosys05:04
*** Stary <Stary!~Stary@hacksoc/infrastructure> has joined #yosys05:07
*** tnt <tnt!~tnt@osmocom/tnt> has joined #yosys05:09
*** msh <[email protected]> has quit IRC (*.net *.split)05:11
*** shorne <[email protected]> has quit IRC (*.net *.split)05:11
*** checkpoint <[email protected]> has quit IRC (*.net *.split)05:11
*** checkpoint <[email protected]> has joined #yosys05:11
*** shorne <[email protected]> has joined #yosys05:11
*** msh <[email protected]> has joined #yosys05:11
*** FabM <FabM!~FabM@2a03:d604:103:600:1691:ad7d:f30a:b49f> has joined #yosys06:05
*** emeb_mac <[email protected]> has quit IRC (Quit: Leaving.)07:06
*** chaoticryptidz <chaoticryptidz!~quassel@2a01:4f9:c010:8beb::> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)07:57
*** chaoticryptidz <chaoticryptidz!~quassel@2a01:4f9:c010:8beb::> has joined #yosys07:58
*** lumo_e <[email protected]> has joined #yosys08:53
*** nonchip <[email protected]> has joined #yosys11:16
nonchiphi, i'm trying to adapt this thing to my project (which uses verilog instead of GHDL): https://hackaday.io/project/180839-vhdlverilog-to-discrete-logic-flow but i noticed that there's no `SUBCKT` definition in my resulting spice netlist (the file literally starts with `X0` after a comment about the yosys version), and assuming that GHDL would have defined that somehow i'm wondering if/how i can instead tell yosys to emit that line?11:19
tpbTitle: VHDL/Verilog to Discrete Logic Flow | Hackaday.io (at hackaday.io)11:19
nonchipalternatively, if anyone has suggestions for other "verilog to discrete logic" synthesis approaches i could try (apart from "draw by hand"), that would also be appreciated :)11:24
*** lumo_e <[email protected]> has quit IRC (Ping timeout: 250 seconds)12:43
*** emeb_mac <[email protected]> has joined #yosys12:56
*** lumo_e <[email protected]> has joined #yosys13:00
*** lumo_e <[email protected]> has quit IRC (Quit: Quit)14:59
josuahnonchip: you can generate a PDF diagram that can help15:03
josuahnonchip: but that is not a complete exhaustive diagram15:04
josuahnonchip: there are blocks with things that not exist "as-is" in gateware, like a multiplication, etc.15:04
josuahnonchip: so you would have to insert "discrete logic for basic block $x" here and there15:05
nonchipyeah i'm doing that currently, even fits rather readable on an A4 page since i ran `opt -full -purge -fine`, but yeah from there it's either print it out and draw on it, or i guess figure out some kinda techmap for turning things into mosfets :P15:05
josuahmaybe the .dot files can be edited afterhand for this15:06
nonchipit's actually rather tame: a few tribufs, half of them are really just open drain pins, a few dff, a few mux, a few logic_*s15:06
nonchipand a few sections that are already ICs i know, wondering how to best optimize those away (e.g. i got a binary counter and a few registers that are currently being represented as various kinds of DFFs)15:07
josuahoh, actually use it with spice! I misread that at first15:08
nonchipi think that's possible with ABC and a custom techmap?15:08
josuahmy knowledge of yosys toolchain might be lacking a bit to answer that though :S15:09
nonchipi just need essentially a "hey that bunch of cells is actually that IC over there" map file, shouldn't be too hard after i figure out *which* of the 50 million map functions to use :P15:10
nonchipmy design (after optimization) fits on an A4 page, it's not too hard to write that map by hand really, but i'd rather then yosys give me something i can feed to e.g. kicad than actually plonking down all the chips by hand because i have rather wide parallel busses15:11
josuahoh, so it permits you to check if there is an ASIC matching the RTL design you need?15:11
nonchipi *think* that's what the ABC mapper is for but not 110% sure15:12
nonchipbtw this is what i'm currently looking at if you're interested :) https://pdfhost.io/v/9eHP4whtd_opt15:13
tpbTitle: opt.pdf | PDF Host (at pdfhost.io)15:13
josuahthank you!15:13
nonchipoptionally replace all the `<16>`s by any bus width you might like, because it's flexible like that. it's a suuuper small and even suuuuuuperer dumb transport-triggered CPU core essentially. it literally just reads 2 addresses, copies from the first to the second, except if the second was 0, then it copies into the program counter (= jump)15:16
josuahnonchip: are you doing a discrete component processor?15:17
nonchipno ALU, conditional logic or anything else, it doesn't even read opcodes, literally just the arguments for the only thing it does: copying from/to 2 addresses.15:17
nonchipyup :)15:17
nonchipwant to make an educational kinda "this is what you need to execute a thing" PCB with discrete components and lots of LEDs to view the bits in realtime, and any actual logic/maths/etc will just be hooked up as peripherals to the main bus in addition to presumably some memory.15:19
nonchipso essentially it's a 1-instruction-execute-cycle-on-a-board :P15:21
nonchipbecause technically that's all you need. add an ALU of your choosing on the bus, and just use that to overwrite the address of a jump target conditionally, and there's your turing completeness :P15:22
josuahthis, on a room full of curious people, would likely get a lot of attention15:22
josuahthat reminds me of the https://github.com/xoreaxeaxeax/movfuscator15:23
josuaha turing machine in a very small nutshell!15:23
nonchipyeah that was one inspiration for that15:24
nonchipfun fact my cpu can't even halt :P for that you need to either make a peripheral for control stuff like that (maybe also for selecting the clock speed or whatever), or jump into an endless loop :D15:26
josuahan ALU of your choosing on the bus15:27
josuahan ALU... as a peripheral! :D yay!15:27
josuahthe principle of a microkernel, but for hardware15:28
josuahinteresting15:28
nonchipi wonder if this cpu could also be implemented using a DMA controller with hardwired instructions...15:35
josuahis that not some sort of DMA already?15:44
nonchipessentially yeah15:44
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Quit: Leaving)15:55
*** bwidawsk <[email protected]> has quit IRC (Quit: Always remember, and never forget; I'll be back.)17:10
*** bwidawsk <[email protected]> has joined #yosys17:11
*** bwidawsk <[email protected]> has quit IRC (Ping timeout: 248 seconds)17:23
*** bwidawsk <[email protected]> has joined #yosys17:25
*** emeb <[email protected]> has joined #yosys17:32
*** bwidawsk <[email protected]> has quit IRC (Quit: Always remember, and never forget; I'll be back.)17:33
*** bwidawsk <[email protected]> has joined #yosys17:34
*** bwidawsk <[email protected]> has quit IRC (Quit: Always remember, and never forget; I'll be back.)18:01
*** bwidawsk <[email protected]> has joined #yosys18:01
*** adjtm <[email protected]> has joined #yosys18:01
*** Klotz <Klotz!~Klotzoman@gateway/tor-sasl/klotz> has joined #yosys18:19
*** gordonDrogon <[email protected]> has quit IRC (Ping timeout: 248 seconds)18:20
*** gordonDrogon <[email protected]> has joined #yosys18:20
*** ec <ec!~ec@gateway/tor-sasl/ec> has quit IRC (Quit: ec)18:53
*** lumo_e <[email protected]> has joined #yosys19:16
jevinskie[m]I share with you this gem https://github.com/jowinter/dmacu20:26
jevinskie[m]Minimal CPU Emulator Powered by the ARM PL080 DMA Controller. And it looks like they got nesting working :)20:27
*** adjtm <[email protected]> has quit IRC (Quit: Leaving)21:42
*** kbeckmann <[email protected]> has quit IRC (Ping timeout: 256 seconds)22:04
*** kbeckmann <[email protected]> has joined #yosys22:05
*** nonchip <[email protected]> has quit IRC (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)22:12
*** nonchip <[email protected]> has joined #yosys22:12
*** ec <ec!~ec@gateway/tor-sasl/ec> has joined #yosys22:13
*** emeb <[email protected]> has quit IRC (Quit: Leaving.)22:29
*** lumo_e <[email protected]> has quit IRC (Remote host closed the connection)23:13
*** Klotz <Klotz!~Klotzoman@gateway/tor-sasl/klotz> has quit IRC (Quit: Klotz)23:42
*** philtom is now known as philtor23:43

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!