From: Luke Kenneth Casson Leighton Date: Mon, 9 Jul 2018 11:51:19 +0000 (+0100) Subject: add testbench argument, switch off for muxer conversion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae2524f6b47fef43dd160a34e488ee9910c4347f;p=pinmux.git add testbench argument, switch off for muxer conversion --- diff --git a/src/myhdl/pins.py b/src/myhdl/pins.py index acd6c61..b8b6b78 100644 --- a/src/myhdl/pins.py +++ b/src/myhdl/pins.py @@ -209,18 +209,18 @@ def test_mux(): clk = Signal(bool(0)) mux_inst = test(test2, clk, 2, 4, *args) - mux_inst.convert(hdl="Verilog", initial_values=True) + mux_inst.convert(hdl="Verilog", initial_values=True, testbench=False) #mux_inst = Test(clk, muxes, pins, fns) #toVerilog(mux_inst, clk, muxes, pins, fns) #deco = Deco() #b = _Block(mux_inst, deco, "test", "test.py", 1, clk, muxes, pins, fns) #b.convert(hdl="Verilog", name="test", initial_values=True) - mux_inst.convert(hdl="Verilog", initial_values=True) + #mux_inst.convert(hdl="Verilog", initial_values=True) #block(mux_inst).convert(hdl="Verilog", initial_values=True) # test bench tb = mux_tb() - tb.convert(hdl="Verilog", initial_values=True) + tb.convert(hdl="Verilog", initial_values=True, testbench=True) # keep following lines below the 'tb.convert' line # otherwise error will be reported tb.config_sim(trace=True)