Skip to content

Instantly share code, notes, and snippets.

@kbeckmann
Last active November 10, 2020 12:56
Show Gist options
  • Save kbeckmann/8e0fb597d89e72186d53ce4b101c3c2d to your computer and use it in GitHub Desktop.
Save kbeckmann/8e0fb597d89e72186d53ce4b101c3c2d to your computer and use it in GitHub Desktop.
--- build/top_raw.vg 2020-11-10 13:52:18.699227459 +0100
+++ build/top.vg 2020-11-10 13:52:18.735894471 +0100
@@ -55,9 +55,14 @@
wire \cd_sync.timer[2]_ALU_I1_COUT ;
/* src = "/home/konrad/dev/litex/nmigen/nmigen/vendor/gowin_gw1n.py:224|/usr/bin/../share/yosys/gowin/arith_map.v:34.28-34.29" */
wire \cd_sync.timer[2]_DFFE_Q_D ;
- /* force_downto = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
- wire [3:0] \cd_sync.timer[2]_LUT3_I0_F ;
+ wire \cd_sync.timer[2]_LUT3_I0_F[0] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \cd_sync.timer[2]_LUT3_I0_F[1] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \cd_sync.timer[2]_LUT3_I0_F[2] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \cd_sync.timer[2]_LUT3_I0_F[3] ;
/* hdlname = "cd_sync timer" */
/* src = "/home/konrad/dev/litex/nmigen/nmigen/vendor/gowin_gw1n.py:218" */
wire \cd_sync.timer[3] ;
@@ -227,9 +232,20 @@
wire \led_counter[4]_ALU_I0_COUT ;
/* src = "blinky.py:24|/usr/bin/../share/yosys/gowin/arith_map.v:34.28-34.29" */
wire \led_counter[4]_DFFS_Q_D ;
- /* force_downto = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
- wire [6:0] \led_counter[4]_LUT4_I0_F ;
+ wire \led_counter[4]_LUT4_I0_F[0] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \led_counter[4]_LUT4_I0_F[1] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \led_counter[4]_LUT4_I0_F[2] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \led_counter[4]_LUT4_I0_F[3] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \led_counter[4]_LUT4_I0_F[4] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \led_counter[4]_LUT4_I0_F[5] ;
+ /* src = "/usr/bin/../share/yosys/gowin/cells_map.v:131.20-131.21" */
+ wire \led_counter[4]_LUT4_I0_F[6] ;
/* src = "blinky.py:18" */
wire \led_counter[5] ;
/* src = "blinky.py:24|/usr/bin/../share/yosys/gowin/arith_map.v:38.25-38.27" */
@@ -316,7 +332,7 @@
.I0(\cd_sync.ready_MUX2_LUT7_S0_I0_MUX2_LUT6_O_I0 ),
.I1(\cd_sync.ready_MUX2_LUT7_S0_I0_MUX2_LUT6_O_I1 ),
.O(\cd_sync.ready_MUX2_LUT7_S0_I0 ),
- .S0(\led_counter[4]_LUT4_I0_F [5])
+ .S0(\led_counter[4]_LUT4_I0_F[5] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:165.41-165.66|/usr/bin/../share/yosys/gowin/cells_map.v:159.41-159.66|/usr/bin/../share/yosys/gowin/cells_map.v:155.14-155.54" */
@@ -324,7 +340,7 @@
.I0(\cd_sync.ready_DFFE_Q_D ),
.I1(\cd_sync.ready_DFFE_Q_D ),
.O(\cd_sync.ready_MUX2_LUT7_S0_I0_MUX2_LUT6_O_I0 ),
- .S0(\led_counter[4]_LUT4_I0_F [4])
+ .S0(\led_counter[4]_LUT4_I0_F[4] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:165.41-165.66|/usr/bin/../share/yosys/gowin/cells_map.v:160.41-160.66|/usr/bin/../share/yosys/gowin/cells_map.v:155.14-155.54" */
@@ -332,7 +348,7 @@
.I0(\cd_sync.ready_DFFE_Q_D ),
.I1(\cd_sync.ready_DFFE_Q_D ),
.O(\cd_sync.ready_MUX2_LUT7_S0_I0_MUX2_LUT6_O_I1 ),
- .S0(\led_counter[4]_LUT4_I0_F [4])
+ .S0(\led_counter[4]_LUT4_I0_F[4] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:166.42-166.67|/usr/bin/../share/yosys/gowin/cells_map.v:161.14-161.54" */
@@ -340,7 +356,7 @@
.I0(\cd_sync.ready_MUX2_LUT7_S0_I1_MUX2_LUT6_O_I0 ),
.I1(\cd_sync.ready_MUX2_LUT7_S0_I1_MUX2_LUT6_O_I1 ),
.O(\cd_sync.ready_MUX2_LUT7_S0_I1 ),
- .S0(\led_counter[4]_LUT4_I0_F [5])
+ .S0(\led_counter[4]_LUT4_I0_F[5] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:166.42-166.67|/usr/bin/../share/yosys/gowin/cells_map.v:159.41-159.66|/usr/bin/../share/yosys/gowin/cells_map.v:155.14-155.54" */
@@ -348,7 +364,7 @@
.I0(\led_counter[0]_ALU_I0_I3 ),
.I1(\led_counter[0]_ALU_I0_I3 ),
.O(\cd_sync.ready_MUX2_LUT7_S0_I1_MUX2_LUT6_O_I0 ),
- .S0(\led_counter[4]_LUT4_I0_F [4])
+ .S0(\led_counter[4]_LUT4_I0_F[4] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:166.42-166.67|/usr/bin/../share/yosys/gowin/cells_map.v:160.41-160.66|/usr/bin/../share/yosys/gowin/cells_map.v:155.14-155.54" */
@@ -356,16 +372,16 @@
.I0(\led_counter[0]_ALU_I0_I3 ),
.I1(\cd_sync.ready_MUX2_LUT7_S0_I1_MUX2_LUT6_O_I1_MUX2_LUT5_O_I1 ),
.O(\cd_sync.ready_MUX2_LUT7_S0_I1_MUX2_LUT6_O_I1 ),
- .S0(\led_counter[4]_LUT4_I0_F [4])
+ .S0(\led_counter[4]_LUT4_I0_F[4] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:166.42-166.67|/usr/bin/../share/yosys/gowin/cells_map.v:160.41-160.66|/usr/bin/../share/yosys/gowin/cells_map.v:154.41-154.66|/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \cd_sync.ready_MUX2_LUT7_S0_I1_MUX2_LUT6_O_I1_MUX2_LUT5_O_I1_LUT4_F (
.F(\cd_sync.ready_MUX2_LUT7_S0_I1_MUX2_LUT6_O_I1_MUX2_LUT5_O_I1 ),
- .I0(\led_counter[4]_LUT4_I0_F [0]),
- .I1(\led_counter[4]_LUT4_I0_F [1]),
- .I2(\led_counter[4]_LUT4_I0_F [2]),
- .I3(\led_counter[4]_LUT4_I0_F [3])
+ .I0(\led_counter[4]_LUT4_I0_F[0] ),
+ .I1(\led_counter[4]_LUT4_I0_F[1] ),
+ .I2(\led_counter[4]_LUT4_I0_F[2] ),
+ .I3(\led_counter[4]_LUT4_I0_F[3] )
);
defparam \cd_sync.ready_MUX2_LUT7_S0_I1_MUX2_LUT6_O_I1_MUX2_LUT5_O_I1_LUT4_F .INIT = 16'h8000;
/* module_not_derived = 1 */
@@ -390,7 +406,7 @@
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \cd_sync.timer[0]_LUT4_I0 (
- .F(\cd_sync.timer[2]_LUT3_I0_F [1]),
+ .F(\cd_sync.timer[2]_LUT3_I0_F[1] ),
.I0(\cd_sync.timer[0] ),
.I1(\cd_sync.timer[1] ),
.I2(\cd_sync.timer[6] ),
@@ -438,7 +454,7 @@
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:144.23-145.37" */
LUT3 \cd_sync.timer[2]_LUT3_I0 (
- .F(\cd_sync.timer[2]_LUT3_I0_F [0]),
+ .F(\cd_sync.timer[2]_LUT3_I0_F[0] ),
.I0(\cd_sync.timer[2] ),
.I1(\cd_sync.timer[4] ),
.I2(\cd_sync.timer[7] )
@@ -467,8 +483,8 @@
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \cd_sync.timer[3]_LUT4_I2 (
.F(\cd_sync.ready_DFFE_Q_CE ),
- .I0(\cd_sync.timer[2]_LUT3_I0_F [0]),
- .I1(\cd_sync.timer[2]_LUT3_I0_F [1]),
+ .I0(\cd_sync.timer[2]_LUT3_I0_F[0] ),
+ .I1(\cd_sync.timer[2]_LUT3_I0_F[1] ),
.I2(\cd_sync.timer[3] ),
.I3(\cd_sync.timer[5] )
);
@@ -477,8 +493,8 @@
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \cd_sync.timer[3]_LUT4_I2_1 (
.F(\cd_sync.timer[3]_LUT4_I2_1_F ),
- .I0(\cd_sync.timer[2]_LUT3_I0_F [0]),
- .I1(\cd_sync.timer[2]_LUT3_I0_F [1]),
+ .I0(\cd_sync.timer[2]_LUT3_I0_F[0] ),
+ .I1(\cd_sync.timer[2]_LUT3_I0_F[1] ),
.I2(\cd_sync.timer[3] ),
.I3(\cd_sync.timer[5] )
);
@@ -603,7 +619,7 @@
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \led_counter[0]_LUT4_I0 (
- .F(\led_counter[4]_LUT4_I0_F [0]),
+ .F(\led_counter[4]_LUT4_I0_F[0] ),
.I0(\led_counter[0] ),
.I1(\led_counter[1] ),
.I2(\led_counter[2] ),
@@ -670,7 +686,7 @@
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \led_counter[12]_LUT4_I0 (
- .F(\led_counter[4]_LUT4_I0_F [1]),
+ .F(\led_counter[4]_LUT4_I0_F[1] ),
.I0(\led_counter[12] ),
.I1(\led_counter[13] ),
.I2(\led_counter[14] ),
@@ -756,7 +772,7 @@
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \led_counter[16]_LUT4_I0 (
- .F(\led_counter[4]_LUT4_I0_F [4]),
+ .F(\led_counter[4]_LUT4_I0_F[4] ),
.I0(\led_counter[16] ),
.I1(\led_counter[17] ),
.I2(\led_counter[18] ),
@@ -861,7 +877,7 @@
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \led_counter[20]_LUT4_I0 (
- .F(\led_counter[4]_LUT4_I0_F [3]),
+ .F(\led_counter[4]_LUT4_I0_F[3] ),
.I0(\led_counter[20] ),
.I1(\led_counter[21] ),
.I2(\led_counter[22] ),
@@ -985,7 +1001,7 @@
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \led_counter[4]_LUT4_I0 (
- .F(\led_counter[4]_LUT4_I0_F [5]),
+ .F(\led_counter[4]_LUT4_I0_F[5] ),
.I0(\led_counter[4] ),
.I1(\led_counter[5] ),
.I2(\led_counter[6] ),
@@ -1071,7 +1087,7 @@
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 \led_counter[8]_LUT4_I0 (
- .F(\led_counter[4]_LUT4_I0_F [2]),
+ .F(\led_counter[4]_LUT4_I0_F[2] ),
.I0(\led_counter[8] ),
.I1(\led_counter[9] ),
.I2(\led_counter[10] ),
@@ -1122,7 +1138,7 @@
.I0(pin_led_0_led_0__o_DFFRE_Q_CE_MUX2_LUT6_O_I0),
.I1(pin_led_0_led_0__o_DFFRE_Q_CE_MUX2_LUT6_O_I1),
.O(pin_led_0_led_0__o_DFFRE_Q_CE),
- .S0(\led_counter[4]_LUT4_I0_F [4])
+ .S0(\led_counter[4]_LUT4_I0_F[4] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:159.41-159.66|/usr/bin/../share/yosys/gowin/cells_map.v:155.14-155.54" */
@@ -1130,7 +1146,7 @@
.I0(\led_counter[0]_ALU_I0_I3 ),
.I1(\led_counter[0]_ALU_I0_I3 ),
.O(pin_led_0_led_0__o_DFFRE_Q_CE_MUX2_LUT6_O_I0),
- .S0(\led_counter[4]_LUT4_I0_F [3])
+ .S0(\led_counter[4]_LUT4_I0_F[3] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:160.41-160.66|/usr/bin/../share/yosys/gowin/cells_map.v:155.14-155.54" */
@@ -1138,16 +1154,16 @@
.I0(\led_counter[0]_ALU_I0_I3 ),
.I1(pin_led_0_led_0__o_DFFRE_Q_CE_MUX2_LUT6_O_I1_MUX2_LUT5_O_I1),
.O(pin_led_0_led_0__o_DFFRE_Q_CE_MUX2_LUT6_O_I1),
- .S0(\led_counter[4]_LUT4_I0_F [3])
+ .S0(\led_counter[4]_LUT4_I0_F[3] )
);
/* module_not_derived = 1 */
/* src = "/usr/bin/../share/yosys/gowin/cells_map.v:160.41-160.66|/usr/bin/../share/yosys/gowin/cells_map.v:154.41-154.66|/usr/bin/../share/yosys/gowin/cells_map.v:148.23-149.48" */
LUT4 pin_led_0_led_0__o_DFFRE_Q_CE_MUX2_LUT6_O_I1_MUX2_LUT5_O_I1_LUT4_F (
.F(pin_led_0_led_0__o_DFFRE_Q_CE_MUX2_LUT6_O_I1_MUX2_LUT5_O_I1),
- .I0(\led_counter[4]_LUT4_I0_F [5]),
- .I1(\led_counter[4]_LUT4_I0_F [0]),
- .I2(\led_counter[4]_LUT4_I0_F [1]),
- .I3(\led_counter[4]_LUT4_I0_F [2])
+ .I0(\led_counter[4]_LUT4_I0_F[5] ),
+ .I1(\led_counter[4]_LUT4_I0_F[0] ),
+ .I2(\led_counter[4]_LUT4_I0_F[1] ),
+ .I3(\led_counter[4]_LUT4_I0_F[2] )
);
defparam pin_led_0_led_0__o_DFFRE_Q_CE_MUX2_LUT6_O_I1_MUX2_LUT5_O_I1_LUT4_F.INIT = 16'h8000;
/* module_not_derived = 1 */
@@ -1157,8 +1173,8 @@
.I0(pin_led_0_led_0__o)
);
defparam pin_led_0_led_0__o_LUT1_I0.INIT = 2'h1;
- assign \led_counter[4]_LUT4_I0_F [6] = \cd_sync.ready ;
- assign \cd_sync.timer[2]_LUT3_I0_F [3:2] = { \cd_sync.timer[5] , \cd_sync.timer[3] };
+ assign \led_counter[4]_LUT4_I0_F[6] = \cd_sync.ready ;
+ assign { \cd_sync.timer[2]_LUT3_I0_F[3] , \cd_sync.timer[2]_LUT3_I0_F[2] } = { \cd_sync.timer[5] , \cd_sync.timer[3] };
assign \cd_sync.clk = \cd_sync.por_clk ;
assign \cd_sync.clk24_0__i = \cd_sync.por_clk ;
assign cd_sync_clk24_0__i = \cd_sync.por_clk ;
# Automatically generated by nMigen 0.3.dev183+g69ed491. Do not edit.
read_ilang top.il
# (script_after_read placeholder)
synth_gowin -top top -vout top_raw.vg
splitnets
write_verilog -decimal -attr2comment -defparam -renameprefix gen top.vg
# (script_after_synth placeholder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment